Anki/anki
Damien Elmes 55f4b9b7d0 favour integers, change due representation, fact&card ordering, more
- removed 'created' column from various tables. We don't care when things like
  models are created, and card creation time didn't reflect the actual time a
  card was created
- facts were previously ordered by their creation date. The code would
  manually set the creation time for subsequent facts on import by 0.0001
  seconds, and then card due times were set by adding the fact time to the
  ordinal number*0.000001. This was prone to error, and the number of zeros used
  was actually different in different parts of the code. Instead of this, we
  replace it with a 'pos' column on facts, which increments for each new fact.
- importing should add new facts with a higher pos, but concurrent updates in
  a synced deck can have multiple facts with the same pos

- due times are completely different now, and depend on the card type
- new cards have due=fact.pos or random(0, 10000)
- reviews have due set to an integer representing days since deck
  creation/download
- cards in the learn queue use an integer timestamp in seconds

- many columns like modified, lastSync, factor, interval, etc have been converted to
  integer columns. They are cheaper to store (large decks can save 10s of
  megabytes) and faster to search for.

- cards have their group assigned on fact creation. In the future we'll add a
  per-template option for a default group.

- switch to due/random order for the review queue on upgrade. Users can still
  switch to the old behaviour if they want, but many people don't care what
  it's set to, and due is considerably faster, which may result in a better
  user experience
2011-04-28 09:23:28 +09:00
..
importing improve dynamic indices, implement new queue 2011-04-28 09:23:28 +09:00
template disable callable replacement which isn't supported on older pythons 2011-01-20 05:32:30 +09:00
__init__.py change deck loading call 2011-04-28 09:23:28 +09:00
cards.py favour integers, change due representation, fact&card ordering, more 2011-04-28 09:23:28 +09:00
consts.py add index for groupId, improve startup speed 2011-04-28 09:23:28 +09:00
cram.py start work on learn mode, change models, more 2011-04-28 09:23:28 +09:00
db.py initial changes to models, deck, etc 2011-04-28 09:23:28 +09:00
deck.py favour integers, change due representation, fact&card ordering, more 2011-04-28 09:23:28 +09:00
errors.py remove self explanatory module docstrings; strip trailing whitespace 2011-04-28 09:21:07 +09:00
exporting.py moving scheduling code into separate file, some preliminary refactoring 2011-04-28 09:23:28 +09:00
facts.py favour integers, change due representation, fact&card ordering, more 2011-04-28 09:23:28 +09:00
fonts.py remove self explanatory module docstrings; strip trailing whitespace 2011-04-28 09:21:07 +09:00
graphs.py store revlog time in integer MS 2011-04-28 09:23:28 +09:00
graves.py favour integers, change due representation, fact&card ordering, more 2011-04-28 09:23:28 +09:00
groups.py favour integers, change due representation, fact&card ordering, more 2011-04-28 09:23:28 +09:00
hooks.py new syncName handling 2010-11-23 23:12:34 +09:00
lang.py remove self explanatory module docstrings; strip trailing whitespace 2011-04-28 09:21:07 +09:00
latex.py remove self explanatory module docstrings; strip trailing whitespace 2011-04-28 09:21:07 +09:00
media.py favour integers, change due representation, fact&card ordering, more 2011-04-28 09:23:28 +09:00
models.py favour integers, change due representation, fact&card ordering, more 2011-04-28 09:23:28 +09:00
revlog.py favour integers, change due representation, fact&card ordering, more 2011-04-28 09:23:28 +09:00
sched.py favour integers, change due representation, fact&card ordering, more 2011-04-28 09:23:28 +09:00
sound.py remove self explanatory module docstrings; strip trailing whitespace 2011-04-28 09:21:07 +09:00
stats.py moving scheduling code into separate file, some preliminary refactoring 2011-04-28 09:23:28 +09:00
stdmodels.py place cards with corrupt/missing facts into new fact instead of deleting 2010-12-13 06:46:20 +09:00
sync.py rename deck.s to a more understable deck.db; keep s for compat 2011-04-28 09:21:07 +09:00
tags.py add new 'groups' concept, refactor deletions 2011-04-28 09:23:28 +09:00
upgrade.py favour integers, change due representation, fact&card ordering, more 2011-04-28 09:23:28 +09:00
utils.py favour integers, change due representation, fact&card ordering, more 2011-04-28 09:23:28 +09:00