drop card modified index

Because the cards table is small now, loading it in and doing a table scan
isn't necessary. The facts table is bigger now, so we still need that index.
This commit is contained in:
Damien Elmes 2011-03-11 05:14:14 +09:00
parent 911069d371
commit 2dadb2c933

View file

@ -182,8 +182,7 @@ values(1,%(t)s,%(t)s,%(t)s,%(v)s,'',0,-2,'', '', '');
def _updateIndices(db):
"Add indices to the DB."
db.executescript("""
-- sync summaries
create index if not exists ix_cards_mod on cards (mod);
-- avoid loading entire facts table in for sync summary
create index if not exists ix_facts_mod on facts (mod);
-- card spacing, etc
create index if not exists ix_cards_fid on cards (fid);