couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Cohnen <sebastiancoh...@googlemail.com>
Subject Re: Revision limit per-document
Date Sat, 18 Dec 2010 09:54:48 GMT
you cannot. revisions are only for concurrency control to handle conflicts when replicating.
If you need a document versioning you need to build that by yourself.

On 18.12.2010, at 10:45, Svein Helge Grinden wrote:

> How can I set up CouchDB to keep the last 10 revisions of each document after compaction?
> 
> 
> On 18. des. 2010, at 09:33, Sebastian Cohnen <sebastiancohnen@googlemail.com> wrote:
> 
>> just to clear things up: Setting the revision limit doesn't mean that CouchDB will
keep around 10 revisions of each document. If there is no conflict, only the current version
is kept around after compaction.
>> 
>> On 18.12.2010, at 04:30, Paul Davis wrote:
>> 
>>> On Fri, Dec 17, 2010 at 9:19 PM, Svein Helge Grinden
>>> <svein.helge.grinden@gmail.com> wrote:
>>>> Hi
>>>> 
>>>> I wonder if it's possible to set the revision limit per-document and not
>>>> just for the whole database?
>>>> 
>>>> I would like to keep lets say 10 revisions for each document. After compact
>>>> database is ran I would still want to have up to 10 revision of each
>>>> document.
>>>> Far as I have figured out, I can only set the total number of revisions for
>>>> the hole database.
>>>> 
>>> 
>>> The revs_limit is per document already. There is no database wide
>>> revision limit.
>>> 
>>> HTH,
>>> Paul Davis
>> 


Mime
View raw message