couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Norwich <>
Subject Re: How to 'force write' in v2.0 ?
Date Thu, 14 May 2015 14:40:55 GMT
>> all_or_nothing doesn't introduces conflicts.

You mean it's the new behavior in 2.0 ? in 1.6 all_or_nothing will happily write and introduce
as long as it pass validation.

>>  For introducing conflicts, use new_edits: false

I tried, but then the client has to generate rev manually and keep track all parents' revisions
all the
way until revpos 1. Is there simpler solution ?
Does the request needs to list all parents rev or only the latest one ? I tried both and its

what is the implication of supplying only the latest rev ?

On Thu, 14/5/15, Alexander Shorin <> wrote:

 Subject: Re: How to 'force write' in v2.0 ?
 To: "" <>,
 Date: Thursday, 14 May, 2015, 20:44
 doesn't introduces conflicts. It allows CouchDB to
 return an error response if any write fail.
 For introducing conflicts, use new_edits:
 false. But this is not a
 force write as
 validate_doc_update still may block your writes.

View raw message