incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Stott <>
Subject Re: Get All Versions of a document
Date Tue, 22 Feb 2011 15:09:43 GMT
On 22 February 2011 14:50, Luis Carlos Junges <> wrote:
> How can i get all version from a document? I wil need to it to print a
> timeline report.

The simplest answer is "You shouldn't".

The revisions couchdb stores can't be relied upon for any kind of
document versioning.  They're not always replicated, and are destroyed
on compaction.  If you want to present some timeline of revisions, I
suggest storing some representation of that timeline in an attribute
of the document in question.

Consider adopting a strategy like the one presented here


View raw message