couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Trivial Update of "HTTP_Bulk_Document_API" by RobertNewson
Date Sun, 23 Dec 2012 16:21:47 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "HTTP_Bulk_Document_API" page has been changed by RobertNewson:
http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API?action=diff&rev1=19&rev2=20

  
  === Transactional Semantics with Bulk Updates ===
  
- In short, there are none (by design). However, you can ask CouchDB to check that all the
documents in your {{{_bulk_docs}}} request pass all your validation functions. If even one
fails, none of the documents are written. You can select this mode by including {{{"all_or_nothing":true}}}
in your request. With this mode, if all documents pass validation, then all documents will
be updated, even if that introduces a conflict for the affected documents.
+ In short, there are none (by design). However, you can ask CouchDB to check that all the
documents in your {{{_bulk_docs}}} request pass all your validation functions. If even one
fails, none of the documents are written. You can select this mode by including {{{"all_or_nothing":true}}}
in your request. With this mode, if all documents pass validation, then all documents will
be updated, even if that introduces a conflict for some or all of the documents.
  
  Bulk updates work independently of replication, the documents updated in a {{{_bulk_docs}}}
request will not be replicated as a group, and will not even necessarily be replicated in
the same order as they were in the request.
  

Mime
View raw message