topic_views table

The topic_views table in the Forum Database Schema schema has 5 columns, keyed by id, with 1 foreign key to topics.

Pre-aggregated per topic per day, not one row per hit. topics.view_count is the running total of this table.

Columns (5)

Columns of the topic_views table
ColumnTypeConstraintsDescription
iduuidprimary key
topic_iduuidnot null, references topics.id
viewed_ondatenot null
view_countintegernot null
unique_countintegernot null

Indexes (1)

  • (topic_id, viewed_on) unique

Relationships