hidden_posts table

The hidden_posts table in the Reddit Clone Database Schema schema has 3 columns, with 2 foreign keys to users and posts.

Hide is per user and filters at read time during feed assembly. It is the cheapest personalisation signal in the product and costs one anti-join.

Columns (3)

Columns of the hidden_posts table
ColumnTypeConstraintsDescription
user_iduuidnot null, references users.id
post_iduuidnot null, references posts.id
hidden_attimestamptznot null

Relationships

  • hidden_posts.user_id references users.id
  • hidden_posts.post_id references posts.id