r/shittyprogramming • • Nov 27 '17

'); DROP TABLE Posts;--

EDIT: I tried

298 Upvotes

22 comments sorted by

View all comments

1

u/SentientStoic Nov 27 '17

If I recall correctly, Reddit doesn't actually have a posts table. Instead, it has something like a "post_data" table and a "post_thing" table. Relevant link. Long story short, when Reddit started becoming massively popular, they had to do some creative things with their tables to keep up with user demand.