anki-sync-server/ankisyncd
flan e8f274ee84 Fix long media sync times on AnkiDroid
Based on PR #44 by Johannes Schirm <https://github.com/Marth68>.
The code is pretty much the same, but with usn used instead of
mtime for determining which media files have changed since last
sync.

Relevant excerpt from #44:
> The server was always sending metadata for all files in the
> collection as a response to the mediaChanges operation. Because
> AnkiDroid then calculates checksums for all these files (just to
> notice that they actually haven't changed), it took larger
> collections very long to sync after every media change. With this
> fix, only the number of files indicated by usn - lastUsn (and
> mtime) are considered for each sync.

Fixes #26, closes #44.
2020-01-04 05:51:33 +01:00
..
__init__.py Print version on startup 2020-01-04 05:39:24 +01:00
__main__.py Make the server runnable with python3 -m ankisyncd 2018-08-20 14:42:40 +02:00
collection.py Store media usn per-file 2020-01-04 05:51:33 +01:00
config.py Log all ankisyncd events under ankisyncd.* 2019-03-08 14:24:58 +01:00
full_sync.py Fix full sync on Windows 2019-04-16 19:57:24 +02:00
media.py Store media usn per-file 2020-01-04 05:51:33 +01:00
sessions.py Don't create DBs during schema check if they don't exist 2019-03-16 15:24:46 +01:00
sync_app.py Fix long media sync times on AnkiDroid 2020-01-04 05:51:33 +01:00
thread.py Remove unused argument to logger.error() 2020-01-03 03:02:42 +01:00
users.py Don't create DBs during schema check if they don't exist 2019-03-16 15:24:46 +01:00