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 5C8769621 for ; Wed, 18 Apr 2012 08:52:01 +0000 (UTC) Received: (qmail 97272 invoked by uid 500); 18 Apr 2012 08:51:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 97136 invoked by uid 500); 18 Apr 2012 08:51:59 -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 97127 invoked by uid 99); 18 Apr 2012 08:51:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 08:51:59 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.hirst@sophos.com designates 216.47.234.213 as permitted sender) Received: from [216.47.234.213] (HELO mx4.sophos.com) (216.47.234.213) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 08:51:51 +0000 Received: from mx4.sophos.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id B9FA84E0531 for ; Wed, 18 Apr 2012 09:51:30 +0100 (BST) Received: from us-col-exch2.green.sophos (us-col-exch2.green.sophos [10.85.122.17]) by mx4.sophos.com (Postfix) with ESMTPS id 8D7F24E02B1 for ; Wed, 18 Apr 2012 09:51:30 +0100 (BST) Received: from uk-exch1.green.sophos (10.100.199.16) by us-col-exch2.green.sophos (10.85.122.17) with Microsoft SMTP Server (TLS) id 8.3.213.0; Wed, 18 Apr 2012 04:51:30 -0400 Received: from UK-EXCHMBX1.green.sophos ([fe80:0000:0000:0000:e1bd:d3c1:23.222.229.221]) by uk-exch1.green.sophos ([10.100.199.16]) with mapi; Wed, 18 Apr 2012 09:51:29 +0100 From: Paul Hirst To: "user@couchdb.apache.org" Date: Wed, 18 Apr 2012 09:51:27 +0100 Subject: Making conflicts first class citizens Thread-Topic: Making conflicts first class citizens Thread-Index: Ac0dQHEXjbqEn+hEQOmt45DQwxGXvA== Message-ID: <36E79CEC5BFB8E4D9763C4DEB9B1163C38B418CEB1@UK-EXCHMBX1.green.sophos> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: multipart/alternative; boundary="_000_36E79CEC5BFB8E4D9763C4DEB9B1163C38B418CEB1UKEXCHMBX1gre_" MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sophos.com; h=from:to:date:subject:message-id:content-type:mime-version; s=global; bh=p7ILhaRnIU90O79LusQktR4NDHy7XfpWtHIMqLRj1jY=; b=TaQDf0koRga6roueIrfvizGogJEeYgfJZy9nbC9QIV4dxc9tDO3EPOmUPGjnR7ijto05ZjFxBPQ4IYy5XQOllSCsyzOwXY3ADqygt59ZU4DAmC/4BO4EaptgnYjf44k37hlPblrdn3zgQGEca6K6SjCVXQZ+YdjRHbshUMd0p7Y= --_000_36E79CEC5BFB8E4D9763C4DEB9B1163C38B418CEB1UKEXCHMBX1gre_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I saw this idea on allourideas.org: "Conflicts as first class citizens: Surface the conflict on read, and alway= s accept a write, assuming it passes validation." I was wondering if anyone could expand on this? On write, conflicts will be rejected at the moment which is really handy fr= om a simplicity point of view and in many use cases it's a good enough solu= tion. If you use the all_or_nothing:true option through the bulk API then y= ou can currently write conflicting documents and this is (as I understand i= t) exactly what replication does. So, is this idea, about changing the default behaviour to act as the all_or= _nothing option? Does it get rid of the ability to detect and reject confli= cts at write time? Lastly, why does anyone want it when we seem to have the= best of both worlds at the moment? ________________________________ Sophos Limited, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, Un= ited Kingdom. Company Reg No 2096520. VAT Reg No GB 991 2418 08. --_000_36E79CEC5BFB8E4D9763C4DEB9B1163C38B418CEB1UKEXCHMBX1gre_--