couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "c.Kleinhuis" ...@digitalgott.de>
Subject Re: large attachments/huge databases ?`
Date Thu, 13 May 2010 19:12:51 GMT
J Chris Anderson schrieb:
> On May 13, 2010, at 11:35 AM, Sebastian Cohnen wrote:
>
>   
>> when you need versioning, you need to implement it explicitly.
>>     
>
>
> The simplest versioning scheme is for the client to store the string representation of
a document as served by CouchDB. While updating the document contents, the original string
representation is sent back as a new attachment.
>
> This has the advantage that versions will replicate together, and they can be manually
pruned by deleting individual attachments.
>
> This should be a trivial addition to jquery.couch.js or couch.js, if anyone's up for
hacking.
>   
 i need ALL versions :D from the beginning to current version, what 
about saving
previous versions as an array field containing everything but the array 
field for saving the versions ?

thx


Mime
View raw message