Anki is a smart spaced repetition flashcard program
Find a file
Damien Elmes be045d451c remove the media table
The media table was originally introduced when Anki hashed media filenames,
and needed a way to remember the original filename. It also helped with:
1) getting a quick list of all media used in the deck, or the media added
   since the last sync, for mobile clients
2) merging identical files with different names

But had some drawbacks:
- every operation that modifies templates, models or facts meant generating
  the q/a and checking if any new media had appeared
- each entry is about 70 bytes, and some decks have 100k+ media files

So we remove the media table. We address 1) by being more intelligent about
media downloads on the mobile platform. We ask the user after a full sync if
they want to look for missing media, and they can choose not to if they know
they haven't added any. And on a partial sync, we can scan the contents of the
incoming facts for media references, and download any references we find. This
also avoids all the issues people had with media not downloading because it
was in their media folder but not in the media database.

For 2), when copying media to the media folder, if we have a duplicate
filename, we check if that file has the same md5, and avoid copying if so.
This won't merge identical content that has separate names, but instances
where users need that are rare.
2011-04-28 09:23:56 +09:00
anki remove the media table 2011-04-28 09:23:56 +09:00
tests remove the media table 2011-04-28 09:23:56 +09:00
tools Remove call to iterate over removed dir (features) 2009-06-15 20:02:38 +02:00
.gitignore auto-detect '=' as import delimiter, strip fields 2010-03-14 11:40:31 +01:00
ChangeLog.old initial commit from hg 2008-09-27 23:50:03 +09:00
COPYING allow bsd license rather than requiring people to sign over copyright 2010-08-11 14:40:34 +09:00