usergraphtheory's picture
Sync from erdostack/bench at a7805c45d77258d316383c92bdc9f472498d255f (part 58)
1e5b853 verified
|
Raw History Blame Contribute Delete
540 Bytes

How the snapshot stores things

  • Posts and comments share one table, message, told apart by kind ('post' or 'comment'). A comment has reply_of_id (the post or comment it answers); a post has reply_of_id NULL.
  • message.creator_id is the author (the person who wrote it).
  • Friendships are in person_knows_person, one row per pair with person1_id < person2_id. To ask "does A know B" check both orders.
  • Every creation_date is epoch milliseconds, UTC.
  • Saved queries take one parameter, :p, set by make q P=....