couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Newson (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-2065) Overwrite a document with a single request
Date Thu, 27 Feb 2014 19:11:20 GMT


Robert Newson commented on COUCHDB-2065:

Thanks for letting us know. I agree that a really thorough exposition of *why* couchdb does
this would be great to have. We obviously have some text on this from the book, the wiki and
the docs, but not, I don't think, a single article you could read that covers the entire thing
in detail.

> Overwrite a document with a single request
> ------------------------------------------
>                 Key: COUCHDB-2065
>                 URL:
>             Project: CouchDB
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>            Reporter: Nolan Lawson
> It would be convenient to have the option to overwrite documents with a single request,
rather than having to GET, check the _rev, POST/PUT, possibly deal with conflicts, and then
continue POST/PUTing until success.  It could be something as simple as:
> {code}
> PUT localhost:5984/mydb/mydoc?force=true 
> {code}
> If two callers attempt to update the same document at the same time, whoever gets there
last would win.
> Prompted by a [discussion in PouchDB|].

This message was sent by Atlassian JIRA

View raw message