On 17 Mar 2009, at 12:37, Noah Slater wrote:

On Tue, Mar 17, 2009 at 12:20:42PM +0100, Jan Lehnardt wrote:
Hi dev@,

CouchDB supports the HTTP method MOVE to move a
document to a new document id within a database. MOVE
is really just a convenience method for COPY & DELETE.
In fact internally, it does just that. Damien says the COPY &
DELETE that MOVE does under the hood is not atomic on a
single node. And it is hard to support in the multi-node setup.

So, it's provided as a user convenience feature at no cost co CouchDB.


Hence, I propose to remove the MOVE feature. A client
can simply do COPY & DELETE to achieve the same
result (modulo having a concurrent change to the source
doc between the COPY and the DELETE which should
be taken care of by the application anyway).

And you're proposing to remove this useful feature for what reason? Heh.


the feature doesn't work as advertised and creates false expectations
about atomicity of operations.

Cheers
Jan
--

Reply via email to