How to know all the docs are synced?


#1

If I have lot of docs to sync, how to know if all the docs are sync in couchlite against server? or if not synced, anyway to find out how many docs still need sync and what size so I can give an estimate to user?


#2

@zheng.gong , where do you want to know that items are synced on Couchbase Lite side(App side) or Sync Gateway/Couchbase? I’m guess you want CBL side.


#3

The docs are synced when the push replicator’s status goes to either Idle or Stopped, with lastError nil.

To see the progress, look at the changesCount and completedChangesCount.