mirror of
https://github.com/ankitects/anki.git
synced 2025-11-26 22:47:12 -05:00
Previously we had an index on the value field, which was very expensive for long fields. Instead we use a separate column and take the first 8 characters of the field value's md5sum, and index that. In decks with lots of text in fields, it can cut the deck size by 30% or more, and many decks improve by 10-20%. Decks with only a few characters in fields may increase in size slightly, but this is offset by the fact that we only generate a checksum for fields that have uniqueness checking on. Also, fixed import->update reporting the total # of available facts instead of the number of facts that were imported. |
||
|---|---|---|
| .. | ||
| importing | ||
| template | ||
| __init__.py | ||
| cards.py | ||
| db.py | ||
| deck.py | ||
| errors.py | ||
| exporting.py | ||
| facts.py | ||
| fonts.py | ||
| graphs.py | ||
| history.py | ||
| hooks.py | ||
| lang.py | ||
| latex.py | ||
| media.py | ||
| models.py | ||
| sound.py | ||
| stats.py | ||
| stdmodels.py | ||
| sync.py | ||
| tags.py | ||
| utils.py | ||