You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2012/12/23 17:21:47 UTC

[Couchdb Wiki] Trivial Update of "HTTP_Bulk_Document_API" by RobertNewson

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.