Heya,
On Mar 17, 2008, at 11:47 , Benoit Chesneau wrote:
On Mon, Mar 17, 2008 at 3:14 PM, Jan Lehnardt <[EMAIL PROTECTED]> wrote:
Heya,
On Mar 17, 2008, at 7:29 , Shahar Evron wrote:
[...]
As far as I understood, CouchDB does not keep old revisions
indefinitely
- so if I update a document, it's previous revisions might be
deleted
after a while.
Is this true?
That is correct. Not at the moment though :) The next release of
CouchDB
will include a mechanism called "compaction" that will run
periodically and
prune out old revisions.
We suggest that you manage old revisions to a document that you want
to keep around in attachments to the latest revision.
why not storing revisions as other document ? better to use
attachments ?
You can do that, too. With attachments, you'd have it all in one
place and would not need to write your views in a way that they
don't pick up old revisions. That said, it is certainly possible to
store older revisions in other documents, if that solves your
problems.
Cheers
Jan
--