3 ms·
Unlikely, given Reddit's past schema design. One table of "things", and then another table of attributes of those things in a entity,key,value format. https://
by Macha 3y ago
Unlikely, given Reddit's past schema design. One table of "things", and then another table of attributes of those things in a entity,key,value format.
https://kevin.burke.dev/kevin/reddits-database-has-two-tables/ https://kevin.burke.dev/kevin/reddits-database-has-two-table...
- deleted 3y ago[deleted]
- bcrosby95 3y agoThat doesn't mean those tables didn't have primary or unique keys. According to that post, in 2010, they had about 10 million users. At a conservative 10 fields per user, you're looking at 100 million records. I'm a bit skeptical that they table scanned 100 million records anytime they wanted to access a user's piece of data back in 2010.
- time0ut 3y agoI built something inspired by this very post in 2013/2014. Not sure how the scale compares, but we insert ~10 million “things” with an average of 30 data attributes per day with a 30 day window. It definitely uses primary and foreign keys. It took some time to tune. Had to support an additional access pattern using a non-unique index. Had to work with a DBA to get partitioning right to handle the large write volume and manage expiration efficiently. It worked out great and is still chugging along. It does suck not having all the tools of an RDBMS at your disposal, but it was a good trade off.