couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Kocoloski <kocol...@apache.org>
Subject Re: Revisions lost on CouchDB 1.2.0
Date Fri, 31 Jan 2014 23:41:58 GMT
On Jan 31, 2014, at 6:36 PM, Luca Morandini <lmorandini@ieee.org> wrote:

> On 31/01/14 19:42, Robert Samuel Newson wrote:
>> 
>> As Simon says, this is the normal and expected behavior of CouchDB after
>> database compaction (or replication). CouchDB is not a revision control system,
>> it only keeps the latest versions (including conflicts) of every document
>> (including deleted ones).
> 
> Compaction was indeed run (the sysadmin has no recollection of it, but it is shown in
the logs, my bad I overlooked it).
> 
> I interpreted the _revs_limit parameter as the number of revisions to keep (including
their data), or does CouchDB keep metadata only after a compaction ?
> 
> Regards,
> Luca Morandini

Correct, _revs_limit controls the number of revisions about which metadata is kept.  It's
relevant for replication -- if more than _revs_limit updates are applied in between replications
to a target DB spurious conflicts can be generated.

Compaction only ever preserves the body of the latest revision on each edit branch.

Adam 
Mime
View raw message