> On Jun 7, 2015, at 10:34 PM, Anish Singh <[email protected]> wrote:
> 
> Given the fact that, we always create a copy of the document on every update, 
> this would take a lot of space on Couchbase server.

Older revisions will be deleted to make room. Also, the replicator only 
transfers the latest revision of a document.

> I did 500 taps on a list-item in GrocerySync app and the disk usage shot up 
> by 6 MB in couchbase server. Yes, these documents (or revisions) eventually 
> get cleaned up but even if it does, the revision-manager document for this 
> document will just bloat up.

The revision history (the list of old revIDs) will get pruned after a while 
too, and as James said, you can set it to a smaller limit to.

> So, is it possible to edit or replace an existing document revision if it has 
> not been synced with the sync-gateway?

Replication has nothing to do with updating documents. You can update documents 
as much as you like whether or not there’s a replication running.

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

It’s a lot more efficient to have a continuous replication and leave it running.

—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/D3BD5EB0-F6B8-47D0-B21E-852CAEDC3A3B%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to