> > So, is it possible to edit or replace an existing document revision if it > has not been synced with the sync-gateway? > (To handle this, I am planing to sync with sync-gateway in my app every 5 > secs. So, for every 5 sec only one revision will be synced.) >
If you set up the maxRevTreeDepth <http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/database/index.html#database-housekeeping> property on your database, Couchbase Lite will automatically delete revisions older that the specified tree depth. > Also, how can I control sync? I want to manually trigger a sync. > You can use the start/stop methods on the Replicator <http://developer.couchbase.com/mobile/develop/references/couchbase-lite/couchbase-lite/replication/replication/index.html> to trigger a sync. James -- 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/7a7943ea-fbbf-44bf-97d6-82329e07cbdb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
