subreddit_traffic_daily table

The subreddit_traffic_daily table in the Reddit Clone Database Schema schema has 8 columns, with 1 foreign key to subreddits.

Pre-aggregated per community per day. The mod traffic page is a range scan over this, never a count over posts and comments.

Columns (8)

Columns of the subreddit_traffic_daily table
ColumnTypeConstraintsDescription
subreddit_iduuidnot null, references subreddits.id
measured_ondatenot null
unique_visitorsintegernot null
page_viewsintegernot null
subscriptions_gainedintegernot null
subscriptions_lostintegernot null
posts_createdintegernot null
comments_createdintegernot null

Relationships