couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: _bulk_docs vs. single document insertion
Date Wed, 09 Nov 2011 20:37:32 GMT

On Nov 9, 2011, at 7:13 AM, CGS wrote:

b) the second time not quite ok, returning the same id's and rev's + the
same test1 document (step discarded by bulk, getting the first bulk
operation result instead of incrementing the revision or reporting
conflict);

You’re using all-or-nothing mode, which never returns 409 Conflict errors but instead creates
conflicting revisions in the db. Did you read about how it works?

http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API#Transactional_Semantics_with_Bulk_Updates

—Jens

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message