2 ms·
Every "thing" (a single table) has an attribute called "type". Type is a string, and is something like "comment" or "post" or "badge". "table.create()" doesn't
by wisty 14y ago
Every "thing" (a single table) has an attribute called "type". Type is a string, and is something like "comment" or "post" or "badge".
"table.create()" doesn't create a new table, I think it creates in index on "type", so you can treat it a bit like a separate table.
Yes, it is not a "real" database. It's a key-value store, which doesn't lose data.
- zzzeek 14y ago> "table.create()" doesn't create a new table, if its a sqlalchemy.schema.Table, create() emits DDL for "CREATE TABLE" to the database (trust me, I wrote it). I'm guessing "table" here is some other object local to the reddit codebase. anyway, how many "thing" tables are there total?