Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 98283 invoked from network); 29 Jul 2010 02:19:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Jul 2010 02:19:44 -0000 Received: (qmail 46631 invoked by uid 500); 29 Jul 2010 02:19:43 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 46582 invoked by uid 500); 29 Jul 2010 02:19:43 -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 46574 invoked by uid 99); 29 Jul 2010 02:19:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jul 2010 02:19:42 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jul 2010 02:19:40 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6T2JJ1n024651 for ; Thu, 29 Jul 2010 02:19:19 GMT Message-ID: <13504641.60001280369959025.JavaMail.jira@thor> Date: Wed, 28 Jul 2010 22:19:19 -0400 (EDT) From: "Adam Kocoloski (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-523) View API POST keys to retrieve multiple docs by key could also allow for multiple 'range' queries, i.e. an array of { startkey: .., endkey: ... } params in the POST In-Reply-To: <1691174737.1255021831754.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-523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Kocoloski updated COUCHDB-523: ----------------------------------- Fix Version/s: 1.1 Seems pretty useful to me. I think re-reducing the final output is not too hard if the key ranges do not overlap. But what happens when they do? I suppose a clever thing to do would be to merge the overlapping ranges, but that doesn't strike me as particularly relaxed. > View API POST keys to retrieve multiple docs by key could also allow for multiple 'range' queries, i.e. an array of { startkey: .., endkey: ... } params in the POST > -------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: COUCHDB-523 > URL: https://issues.apache.org/jira/browse/COUCHDB-523 > Project: CouchDB > Issue Type: Improvement > Components: HTTP Interface > Reporter: Nathan Stott > Priority: Minor > Fix For: 1.1 > > Attachments: couch_httpd_view.erl, multi_start_end_key.diff, ranged_key_post.diff > > > It would be useful if I could do a single POST to a view to retrieve multiple ranges specified by startkey, endkey. > The format could be as follows: > { "ranges": [ { "startkey": "a", "endkey": "c" }, { "startkey":"g", "endkey":"z" } ] } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.