Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3269

view response can 'hang' with filter and limit specified

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rnewson Robert Newson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: