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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| subreddit_id | uuid | not null, references subreddits.id | |
| measured_on | date | not null | |
| unique_visitors | integer | not null | |
| page_views | integer | not null | |
| subscriptions_gained | integer | not null | |
| subscriptions_lost | integer | not null | |
| posts_created | integer | not null | |
| comments_created | integer | not null |
Relationships
subreddit_traffic_daily.subreddit_idreferencessubreddits.id