You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to look things up by _item_id on this table, which means I need an index on that column (the table can get very big).
But there's no mechanism in SQLite utils to detect if the table was created for the first time and add an index to it. And I don't want to run CREATE INDEX IF NOT EXISTS every time through the loop.
This should work like the foreign_keys= mechanism.
The text was updated successfully, but these errors were encountered:
I'm writing code for simonw/git-history#33 that creates a table inside a loop:
I need to look things up by
_item_id
on this table, which means I need an index on that column (the table can get very big).But there's no mechanism in SQLite utils to detect if the table was created for the first time and add an index to it. And I don't want to run
CREATE INDEX IF NOT EXISTS
every time through the loop.This should work like the
foreign_keys=
mechanism.The text was updated successfully, but these errors were encountered: