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

threadreads

Saved reads over the community site's messages, used by the moderation team: a member's latest messages with the thread each one belongs to, and the direct replies under a message.

The data is a nightly SQLite snapshot of the site (data/social.db, rebuilt from data/csv/ by make db). Queries run in the sqlite3 shell from the image docker/sqlite.Dockerfile builds (SQLite 3.38.5, the release the site itself ran when this repo started), so results match production byte for byte.

make image                                        # build the sqlite3 shell image
make q F=queries/is2_recent_messages.sql P=630476
make q F=queries/is7_replies.sql P=8000138

Tables are in sql/schema.sql; docs/model.md explains how the snapshot stores things.