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

ASF subversion and git services commented on COUCHDB-523:
---------------------------------------------------------

Commit 23c16c0ffbcb8a79fb4cf3969b3b698929642597 in couchdb-couch-mrview's 
branch refs/heads/1993-bigcouch-couch-mrview from [~chewbranca]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch-mrview.git;h=23c16c0 ]

Allow couch_mrview_http to be more usable in chttpd

This makes a number of updates to useful utility functions in
couch_mrview, especially around parsing of requests, handling view
rows, and interacting with view source code. The `parse_qs` function
was updated to allow for parsing params from json bodies in addition
to just query strings.

The view_cb function is also updated to allow for reuse in chttpd, and
also for better flow control of when to start and complete chunked
responses, which is critical for multi view queries in 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
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-523
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-523
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>            Reporter: Nathan Stott
>            Assignee: Russell Branca
>            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 was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to