couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COUCHDB-514) Redirect from _list using view rows
Date Thu, 12 Nov 2009 02:38:40 GMT

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

Paul Joseph Davis commented on COUCHDB-514:
-------------------------------------------

Ohhhh.

The reason that Zachary's patch won't work is that the Erlang side is waiting for the start
before sending the first row. The "getRow()" style API in JavaScript is still bound by the
serialized enforcement that the Erlang side does. Sadly that means the patch is more involved
than I had initially thought.

For interested parties, the fix for this is in reworking how couch_httpd_show.erl uses the
btree fold function. Basically, in couch_httpd_show:start_list_resp/5 the proper thing would
be to just send the head info and defer the response building till later in the iteration
process when render_list_row is called.

> Redirect from _list using view rows
> -----------------------------------
>
>                 Key: COUCHDB-514
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-514
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: JavaScript View Server
>    Affects Versions: 0.10
>            Reporter: Zachary Zolton
>         Attachments: list-redir.diff, list_views.diff
>
>
> There is no way to redirect from a _list function after calling the getRow() API function.
> Here's a link to the discussion on the dev mailing list:
> http://is.gd/3KZRg

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message