Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 77482 invoked from network); 31 Oct 2009 10:41:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Oct 2009 10:41:17 -0000 Received: (qmail 43729 invoked by uid 500); 31 Oct 2009 10:41:16 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 43626 invoked by uid 500); 31 Oct 2009 10:41:15 -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 43615 invoked by uid 99); 31 Oct 2009 10:41:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Oct 2009 10:41:14 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of b.candler@pobox.com designates 64.74.157.62 as permitted sender) Received: from [64.74.157.62] (HELO sasl.smtp.pobox.com) (64.74.157.62) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Oct 2009 10:41:10 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id CC0588C648; Sat, 31 Oct 2009 06:40:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:message-id:references:mime-version:content-type :in-reply-to; s=sasl; bh=Ap5pgZ2kQXjnozHIR79TJPlzup4=; b=USdm4jG yiNTWFc4IggY0aeBzlquh4AB8sUiXL3Xfs3W1BHQ0Q13QeIWzewUkaRlsYC5o01A dSwbJtffd5wh2zTt8s10YUaBkyOdrrJk2WapcnzJXRN+kgdgrKeVugG+Wsg8LmcH u+iOl533X8nuUZ1MIw/wm8HVXST8lr8SNmh8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to:cc :subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=sasl; b=EyQkRHDC3mGhY0Mm8ifHN26lHBXZ1S4xq M2t+DZ4HeAFW3gbV2Zdph2wIOiY7kkfdVES0pI6tRcoZOp0e1KR/iR8B6VC8mt6g HFZE6uNRvBmi7HSVuE8CVDc657gFvxRZdU42Ci20l/Kztc4nswaH2Nn/BxxBgmHn IAheVDJ6qM= Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id B39B38C647; Sat, 31 Oct 2009 06:40:46 -0400 (EDT) Received: from mappit (unknown [80.45.95.114]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 0A98E8C646; Sat, 31 Oct 2009 06:40:44 -0400 (EDT) Received: from brian by mappit with local (Exim 4.69) (envelope-from ) id 1N4BNz-0003I3-4z; Sat, 31 Oct 2009 10:40:43 +0000 Date: Sat, 31 Oct 2009 10:40:43 +0000 From: Brian Candler To: Adam Kocoloski Cc: user@couchdb.apache.org Subject: Re: What happens with a document, if a conflict is not resolved? Message-ID: <20091031104043.GA12386@uk.tiscali.com> References: <01E98E17-B6AF-4F2F-9752-23CE46D51336@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01E98E17-B6AF-4F2F-9752-23CE46D51336@apache.org> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Pobox-Relay-ID: D9152096-C609-11DE-8C9E-A67CBBB5EC2E-28021239!a-pb-sasl-sd.pobox.com On Fri, Oct 30, 2009 at 08:37:36PM -0400, Adam Kocoloski wrote: > I like where your head's at on this, Brian. I should mention that it > *is* possible to retrieve all conflict revisions of a document with one > request: > > GET /db/bob?open_revs=all Ah, that's a new one to me. I will update the wiki when I get a chance. As Damian pointed out, you could implement resolve-on-get in a client layer in front of CouchDB. The problem is, now I look over my own code, is that I don't actually use a plain GET very much at all. Usually I fetch documents via a view and multi-key fetch. I tried _all_docs?conflicts=true and I didn't get the conflicts (I haven't tried _all_docs?open_revs=all yet). Maybe this doesn't make sense until the view itself can receive all revs and decide how to merge the conflicts. > I think I'd be in favor of making the default GET include all conflicts, > but probably in the _conflicts field so as to minimize the changes to the > current API. As a first step, that would be unlikely to break anyone, would make it clear when a conflict exists, and would simplify the API by removing the need for ?conflicts=true. So I'd vote for that. Regards, Brian.