> On Mar 13, 2015, at 2:21 PM, Jeremy Kelley <[email protected]> wrote:
> 
> QUESTION - Any recommendations on ways to get a little more introspection 
> into the sync process?

Turn on logging <https://github.com/couchbase/couchbase-lite-ios/wiki/Logging>; 
try the “Sync” keyword, if that doesn’t give you enough info go to 
“SyncVerbose”.

> 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.

Hm, that’s not good. Two possibilities I can think of:
(a) Some very large documents being downloaded, where ‘large’ is the sum of 
JSON body size + all attachments;
(b) Very large numbers of deleted documents in the server database (for 
completeness’ sake the ‘tombstone’ markers for these do need to be downloaded 
on first sync.)

> My hunch is there may be some issue with sqlite performing batch inserts? 
> (just spit balling).

There shouldn’t be. The inserts are done in parallel with downloads and in 
not-too-large batches that should take only a fraction of a second apiece.

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/6655FD0D-239A-4D0A-A0D1-845E76A5C06E%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to