Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 56294 invoked from network); 23 Mar 2010 22:47:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Mar 2010 22:47:51 -0000 Received: (qmail 33945 invoked by uid 500); 23 Mar 2010 22:47:50 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 33843 invoked by uid 500); 23 Mar 2010 22:47:50 -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 33828 invoked by uid 99); 23 Mar 2010 22:47:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Mar 2010 22:47:50 +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; Tue, 23 Mar 2010 22:47:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 40F9E234C4AF for ; Tue, 23 Mar 2010 22:47:27 +0000 (UTC) Message-ID: <2111840491.445471269384447265.JavaMail.jira@brutus.apache.org> Date: Tue, 23 Mar 2010 22:47:27 +0000 (UTC) From: "Jamie Talbot (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 ] Jamie Talbot updated COUCHDB-523: --------------------------------- Attachment: multi_start_end_key.diff couch_httpd_view.erl Hacked version of couchdb_httpd_view.erl as of 0.10.1, to include multi start and end key functionality. Also a diff from 0.10.1. > 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 > Attachments: couch_httpd_view.erl, multi_start_end_key.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.