[ 
https://issues.apache.org/jira/browse/COUCHDB-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927976#action_12927976
 ] 

Adam Kocoloski commented on COUCHDB-523:
----------------------------------------

Hi Anand, I'd like to see some of the other commenters weigh in on that one.  
Personally I think it'd be a bit of a hassle to name each of my queries in a 
multi-query request.  I think I prefer the order-preserving behavior of an 
Array, where I could construct my queries Array in order and then just 
concatenate the rows from the individual responses.

I can say that implementing the API as you've written it is not much more 
difficult than the Array-based one.

> 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
>            Assignee: Adam Kocoloski
>            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.

Reply via email to