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

Benjamin Anderson commented on COUCHDB-523:
-------------------------------------------

This would be a big win for me as well, so I made a quick hack of the current 
trunk (1.1.0a961514) to enable it. It's pretty close to Jamie's work, except I 
didn't mess with the group_level code. Diff is attached.

My tests indicate that it works great, but they're admittedly limited; if there 
are any test suites out there that I can throw at it, let me know.

Similar to Jamie, I'm a novice with Erlang, but I'm a heavy Couch user and 
would like to get involved. If there's any change I can make to improve this, 
I'd be glad to spend the time on it.

> 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, 
> 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