1
0
mirror of https://github.com/etesync/android synced 2025-02-04 11:52:27 +00:00
etesync-android/app/src/test/java/com/etesync/syncadapter
Tom Hacohen f7104bbcef Syncmanager: fetch journal entries in chunks.
Before this commit we used to fetch the whole journal entry list in one
go, which caused issues in two cases:
1. On slow internet connections the download may fail.
2. With big journals: Android interrupts sync managers if they don't
    perform any significant network traffic for over a minute[1],
    and because we would first download and only then process, we would
    sometimes hit this threshold.

Current chunk size is set to 50.

1: https://developer.android.com/reference/android/content/AbstractThreadedSyncAdapter.html
2017-05-12 14:36:43 +01:00
..
journalmanager Syncmanager: fetch journal entries in chunks. 2017-05-12 14:36:43 +01:00