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.

Chris


Reply via email to