Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 34223 invoked from network); 9 Nov 2009 10:01:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Nov 2009 10:01:45 -0000 Received: (qmail 76747 invoked by uid 500); 9 Nov 2009 10:01:44 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 76677 invoked by uid 500); 9 Nov 2009 10:01:44 -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 76663 invoked by uid 99); 9 Nov 2009 10:01:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 10:01:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of b.candler@pobox.com designates 208.72.237.25 as permitted sender) Received: from [208.72.237.25] (HELO sasl.smtp.pobox.com) (208.72.237.25) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 10:01:33 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 0901379816; Mon, 9 Nov 2009 05:01:11 -0500 (EST) 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=1vJVz7zp4/3wxxfKpNLFbXv9zUQ=; b=Wfa91uS h3yw+7gObcToEGzhO4JhEuWYahzV5saON4YWa2oYIn+yTUcLian0qhxnRpPk5p/s nlVsbqSFqPhbpk25R8XYwtgrkzUKPZ1QnG1rXKx+5QD3l2Orx1yzrQ0m+ICrNtfW t0bvY1RWoxMUeSGy3ZGkjPQ0QGA8FmJUz/Hw= 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=ygPRZuTyYqOi0XMFHgQMpuGveIVdwbk2N JgjZH+rwi5Bt4ZkXvdx0XDlFab67nNI/vDNRMtqLruDOqhUnE4e5ZrpElat5tFkF FvRIHRGh6YlzfzEdDDtBfIfpKOuQjR7oQqdHKSziaGYyxPlGirBtkUnm4GN2u2Fc iStI7P455s= Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id EAFDF79814; Mon, 9 Nov 2009 05:01:09 -0500 (EST) 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-quonix.pobox.com (Postfix) with ESMTPSA id 9536479812; Mon, 9 Nov 2009 05:01:08 -0500 (EST) Received: from brian by mappit with local (Exim 4.69) (envelope-from ) id 1N7R3b-0002K3-An; Mon, 09 Nov 2009 10:01:07 +0000 Date: Mon, 9 Nov 2009 10:01:07 +0000 From: Brian Candler To: ericdes Cc: user@couchdb.apache.org Subject: Re: What happens with a document, if a conflict is not resolved? Message-ID: <20091109100107.GB8456@uk.tiscali.com> Mail-Followup-To: ericdes , user@couchdb.apache.org References: <4AF6688F.2070103@vcardprocessor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AF6688F.2070103@vcardprocessor.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Pobox-Relay-ID: CE2734B2-CD16-11DE-AFB2-7C40EE7EF46B-28021239!a-pb-sasl-quonix.pobox.com X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Nov 08, 2009 at 12:13:27PM +0530, ericdes wrote: > I'm currently > writing a .Net driver for CouchDB, and my point of view about making the > default GET include all conflicts is that it is not a bad idea at all > (even ideal), although a driver implementation may 'hide' that by > implementing a GetDocument method that would add the query option by > default. I agree, this is something which client libraries can wrap and hide, although I think it could be cleaner if there were a slightly different form of open_revs=all (see COUCHDB-548) > I think it's more annoying not to have the possibility of using the > conflict query 'conflicts=true' when requesting multiple documents (I > mean especially when you don't want to include the docs). You could add a vote to https://issues.apache.org/jira/browse/COUCHDB-549 I'm not sure if you mean getting the conflict state without getting the entire document (i.e. without include_docs=true). It would be possible, but I don't know how expensive it would be. Perhaps couchdb would have to do as much tree walking to find the conflicting revs as it would to retrieve the entire document anyway. Regards, Brian.