From user-return-23130-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Dec 19 02:03:12 2012 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5BBAD2F1 for ; Wed, 19 Dec 2012 02:03:12 +0000 (UTC) Received: (qmail 47245 invoked by uid 500); 19 Dec 2012 02:03:11 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 47015 invoked by uid 500); 19 Dec 2012 02:03:11 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 47000 invoked by uid 99); 19 Dec 2012 02:03:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2012 02:03:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jens@couchbase.com designates 206.225.164.29 as permitted sender) Received: from [206.225.164.29] (HELO EXHUB020-2.exch020.serverdata.net) (206.225.164.29) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2012 02:03:04 +0000 Received: from EXVMBX020-1.exch020.serverdata.net ([169.254.4.73]) by EXHUB020-2.exch020.serverdata.net ([206.225.164.29]) with mapi; Tue, 18 Dec 2012 18:02:42 -0800 From: Jens Alfke To: "user@couchdb.apache.org" Date: Tue, 18 Dec 2012 18:02:41 -0800 Subject: Re: Regarding `_bulk_docs` atomicity [Was: Re: How to find the change sequence of a document's revision] Thread-Topic: Regarding `_bulk_docs` atomicity [Was: Re: How to find the change sequence of a document's revision] Thread-Index: Ac3djO4Hi/hNRbWxTNK9EI10Z/jjtQ== Message-ID: <14FC9F1D-8CD8-46B5-BC84-703EEC4128C3@couchbase.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org > On Tue, Dec 18, 2012 at 11:58 PM, Robert Newson = wrote: >> I'll also note that there's no atomicity to a _bulk_docs request (even >> with all_or_nothing:true) except at the individual document level (as >> usual). Really? The wiki documentation implies atomic behavior =97 either all the d= ocs are written or none are. And I assume they=92re written in one update o= f the database file (it would be really inefficient otherwise) so any reade= r will either see the state before the docs were written, or the one afterw= ards. =97Jens=