You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Robert Newson (JIRA)" <ji...@apache.org> on 2017/01/09 12:40:58 UTC

[jira] [Created] (COUCHDB-3269) view response can 'hang' with filter and limit specified

Robert Newson created COUCHDB-3269:
--------------------------------------

             Summary: view response can 'hang' with filter and limit specified
                 Key: COUCHDB-3269
                 URL: https://issues.apache.org/jira/browse/COUCHDB-3269
             Project: CouchDB
          Issue Type: Bug
            Reporter: Robert Newson


If you query a large view with both 'filter' and 'limit' specified, couchdb will not promptly complete the view response after the requested number of rows has been returned.

This is because view completion happens on receipt of a 'change' or 'completed' message from a worker. In the case of a filtered view request, the worker might instead return a 'no_pass' message, indicating that no documents passed the filter at a given sequence.

Add a clause in fabric_view_changes to handle this special case and end the view response promptly where possible.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)