couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randall Leeds <>
Subject Re: purge old revisions of documents
Date Mon, 12 Apr 2010 04:30:20 GMT
On Mon, Apr 12, 2010 at 04:43, John Merrells <> wrote:
> I now realize that the document revisions are really just a side effect
> of the implementation of the async multi master replication... as you
> need them to do the collision detection.

Not quite. It's actually for collision detection on document updates,
or MultiVersion Concurrency Control. CouchDB exposes the revision to
the client because saving a document without specifying the latest
revision is a conflict: the client must specify the revision she
intends to update. Couch will not allow a document update if it has
changed since the client last read it.

View raw message