Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 2529 invoked from network); 1 Nov 2009 21:02:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Nov 2009 21:02:23 -0000 Received: (qmail 70815 invoked by uid 500); 1 Nov 2009 21:02:22 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 70740 invoked by uid 500); 1 Nov 2009 21:02:22 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 70730 invoked by uid 99); 1 Nov 2009 21:02:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Nov 2009 21:02:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Nov 2009 21:02:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 802B2234C4A9 for ; Sun, 1 Nov 2009 13:01:59 -0800 (PST) Message-ID: <871580514.1257109319523.JavaMail.jira@brutus> Date: Sun, 1 Nov 2009 21:01:59 +0000 (UTC) From: "Brian Candler (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-548) Limitations of open_revs=all MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Limitations of open_revs=all ---------------------------- Key: COUCHDB-548 URL: https://issues.apache.org/jira/browse/COUCHDB-548 Project: CouchDB Issue Type: Improvement Components: HTTP Interface Reporter: Brian Candler Priority: Minor The GET option ?open_revs=all would be useful for retrieving all conflicting versions of a document in one go, but has the following problems. 1. The documents are returned in an arbitrary order which is unrelated to the conflict-winning algorithm. For example, you can't rely on the first revision returned being the one which a plain GET would return. 2. It includes tips of branches which are no longer live (i.e. the tip document has been deleted). Although these can be filtered out client-side by looking for a "_deleted":true member, it transfers unnecessary revs, potentially a large number of them. 3. It is somewhat inconvenient that it returns an array of {"ok":{..doc..}} or "missing":"rev", rather than just an array of docs. Again, this can be normalized client-side. But I observe that if only live branches were returned, then they would always be "ok" and so this layer wouldn't be needed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.