Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 70129 invoked from network); 12 Aug 2009 20:07:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Aug 2009 20:07:28 -0000 Received: (qmail 97584 invoked by uid 500); 12 Aug 2009 20:00:37 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 97558 invoked by uid 500); 12 Aug 2009 20:00:37 -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 97548 invoked by uid 99); 12 Aug 2009 20:00:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 20:00:36 +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; Wed, 12 Aug 2009 20:00:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C3827234C045 for ; Wed, 12 Aug 2009 13:00:14 -0700 (PDT) Message-ID: <1758402456.1250107214799.JavaMail.jira@brutus> Date: Wed, 12 Aug 2009 13:00:14 -0700 (PDT) From: "Adam Kocoloski (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Reopened: (COUCHDB-462) built-in conflicts view In-Reply-To: <955250483.1250046614793.JavaMail.jira@brutus> 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 [ https://issues.apache.org/jira/browse/COUCHDB-462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Kocoloski reopened COUCHDB-462: ------------------------------------ Damien objected to this patch on IRC because it's not performant (it does a full scan over the by_id btree instead of maintaining a separate index) and because it's not flexible enough (e.g. no way to identify conflicts from a particular document type). His suggestion was just to let users define a custom view if they need aggregate information on conflicts. I understand and agree with the performance concerns. I worry that we aren't doing a good job of helping users develop conflict-aware applications, but we could probably alleviate that with some extra hand-holding in Futon. > built-in conflicts view > ----------------------- > > Key: COUCHDB-462 > URL: https://issues.apache.org/jira/browse/COUCHDB-462 > Project: CouchDB > Issue Type: Improvement > Components: HTTP Interface > Reporter: Adam Kocoloski > Fix For: 0.10 > > Attachments: 462-jan-2.patch, conflicts_view.diff, COUCHDB-462-adam-updated.patch, COUCHDB-462-jan.patch > > > This patch adds a built-in _conflicts view indexed by document ID that looks like > GET /dbname/_conflicts > {"rows":[ > {"id":"foo", "rev":"1-1aa8851c9bb2777e11ba56e0bf768649", "conflicts":["1-bdc15320c0850d4ee90ff43d1d298d5d"]} > ]} > GET /dbname/_conflicts?deleted=true > {"rows":[ > {"id":"bar", "rev":"5-dd31186f5aa11ebd47eb664fb342f1b1", "conflicts":["5-a0efbb1990c961a078dc5308d03b7044"], "deleted_conflicts":["3-bdc15320c0850d4ee90ff43d1d298d5d","2-cce334eeeb02d04870e37dac6d33198a"]}, > {"id":"baz", "rev":"2-eec205a9d413992850a6e32678485900", "deleted":true, "deleted_conflicts":["2-10009b36e28478b213e04e71c1e08beb"]} > ]} > As the HTTPd and view layers are a bit outside my specialty I figured I should ask for a Review before Commit. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.