mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
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:
parent
911069d371
commit
2dadb2c933
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue