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] Update of "HTTP Document API" by DavidVanCouvering
Date Mon, 23 Mar 2009 19:22:58 GMT
Dear Wiki user,

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

The following page has been changed by DavidVanCouvering:
http://wiki.apache.org/couchdb/HTTP_Document_API

------------------------------------------------------------------------------
  
     * '''non-atomic''' - This is the default behavior.  Some documents may successfully be
saved and some may not.  It is up to the application to check that all documents were successfully
saved/updated.
  
-    * '''all-or-nothing''' - To use this mode, pass {{{all-or-nothing=true}}} as a parameter
to the request (e.g. ''/{dbname}/_bulk_docs?all-or-nothing=true)''.  In this case either all
the documents will commit successfully or none will. However, it does not do conflict checking,
so the documents will be committed even if there are conflicts.  If any documents have a conflict,
then in the response that document will show a conflict error, for example, given the request
+    * '''all-or-nothing''' - To use this mode, include {{{"all-or-nothing":true}}} as part
of the request.  In this case either all the documents will commit successfully or none will.
However, it does not do conflict checking, so the documents will be committed even if there
are conflicts.  If any documents have a conflict, then in the response that document will
show a conflict error, for example, given the request
  
  {{{
  {
+   "all_or_nothing": true,
    "docs": [
      {"_id": "0", "_rev": "3682408536", "integer": 10, "string": "10"},
      {"_id": "1", "_rev": "3206753266", "integer": 2, "string": "2"},

Mime
View raw message