incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aju <...@muly.dk>
Subject put and no _rev
Date Fri, 06 Mar 2009 16:50:05 GMT
hi

[first post to this list]

either i am missing the obvious or otherwise this might be a feature 
request ;)

it would be convenient if one could PUT an existing document without 
supplying a _rev number.

the argument for supplying the _rev number appears to be so that couchDB 
can apply a it's diff mechanism based on that particular revision - much 
like a MVCC.

in case of a PUT where one doesn't supply the _rev number, couchDB 
should then just assume and use "last revision number" as a base (i 
guess "last" is known server side looking at Futon).

otherwise one have to first figure out which revision is latest (1. 
request) plus then update the document (2. request).

makes sense ?

thanks
./allan

Mime
View raw message