You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Nathan Vander Wilt (JIRA)" <ji...@apache.org> on 2013/10/15 20:50:45 UTC

[jira] [Created] (COUCHDB-1910) Add a batch size limit to _changes?filter

Nathan Vander Wilt created COUCHDB-1910:
-------------------------------------------

             Summary: Add a batch size limit to _changes?filter
                 Key: COUCHDB-1910
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1910
             Project: CouchDB
          Issue Type: Improvement
            Reporter: Nathan Vander Wilt


When requesting filtered changes, there should be a way to limit the number of rows *processed* in addition to the limit returned.

Consider a slow filter that matches only the very last change in a database with update_seq=42000000. There's a good chance the HTTP request could get interrupted before any results are returned (e.g. https://github.com/daleharvey/pouchdb/issues/303) in which case the client has no choice but to retry from the very beginning.

Instead, it should be possible to filter through results ?since=X&count=N2&limit=N1 and get an HTTP response with the lesser of N1 or N2 changes processed.



--
This message was sent by Atlassian JIRA
(v6.1#6144)