OK I understand what you suggest. Thank you for the tip.

Also is there any way to know if a particular replication has been 
completed ? ie Suppose if i have 10 docs in SG and i use my app with on a 
new device with continuous replication on then my _changes will fire 10 
times initially and it will call my UI update function 10 times which 
causes issues.

Initially it would be great if i could check if the pull replication of 10 
docs has been finished..if yes then call my function...and not call the 
function on every document received.

Also i checked the native api docs 
<http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/replication/index.html>
 
and I found you provide status property to check if the replication has 
been completed. It says continuous replication never stops. So how do I 
wait for a continuous replication to complete before calling my function in 
cordova app ?

Do I need to query _active_tasks continuously for the status ? If yes then 
how ?

-- 
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/9e6c687f-54da-4dda-8e1b-d40096e9c9a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to