- tl;dr version -
slow initial sync with little notification about what's going on
QUESTION - Any recommendations on ways to get a little more introspection into the sync process?
- longer version -
On iOS.
For certain cases, I am forcing the user to sit at a spinning screen on app launch while I do a full sync that's available to them. I need all the data coming down to build some reports and showing an empty screen isn't desirable.
I'm watching kCBLReplicationChangeNotification on both the push and pull object for changes. Every time, I seem to get to about 80%, it just hangs for a minute or two. I have tried watching both kCBLDatabaseChangeNotification and kCBLDocumentChangeNotifications. These also seem to stop firing.
I am trying to give the users feedback so they don't close the app if it sits for a minute or two just hung.
QUESTION - Any recommendations on ways to get a little more introspection into the sync process?
My hunch is there may be some issue with sqlite performing batch inserts? (just spit balling).
Maybe over the weekend, I can try with the new forestdb and see what performance is like.
-j