2 ms·
You are correct that reddit has a fixed number of tables (waves hands a bit). There is one table per type, so when a new type is created, a new table is create
by jedberg 14y ago
You are correct that reddit has a fixed number of tables (waves hands a bit). There is one table per type, so when a new type is created, a new table is created. That rarely happens.
The reason you see those create statements in the code is for bootstrapping for open source users -- the first time they run reddit, it creates the tables.