Bookworm-project / BookwormDB

Tools for text tokenization and encoding
MIT License
84 stars 12 forks source link

Refresh memory code for `fastcat` on database rebuilds #41

Open bmschmidt opened 10 years ago

bmschmidt commented 10 years ago

Most things work great when you try to drop in a new set of catalogs, but the memory create code isn't getting updated to include the new fields. This makes it harder to swap out metadata without rebuilding the whole bookworm; a niche case, but nice for developing.

bmschmidt commented 10 years ago

Turns out this should be as simple as inserting DELETE FROM masterTableTable WHERE masterTableTable.tablename="fastcat"; into the code right around when the new catalog is loaded.

bmschmidt commented 10 years ago

Mostly solved by https://github.com/bmschmidt/Presidio/commit/671edb77a55eeda5014e2b31c8d35f71c2fec50a

But although the code is correct, it still has to actually be run. Currently it isn't, because the bookworm sees that fastcat is populated and assumes it's therefore OK.