[
https://issues.apache.org/jira/browse/COUCHDB-977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12968448#action_12968448
]
Paul Joseph Davis commented on COUCHDB-977:
-------------------------------------------
Once for fun I wrote a thing that did just this. Basically all it takes is that
you add a case in the stream functions so that accumulator functions can return
{{skip, N}, Acc} and then it'd jump that many rows. It's actually not overly
difficult to implement.
> make skip leverage inner reduction node counts
> ----------------------------------------------
>
> Key: COUCHDB-977
> URL: https://issues.apache.org/jira/browse/COUCHDB-977
> Project: CouchDB
> Issue Type: Improvement
> Components: Database Core
> Affects Versions: 1.0.1
> Reporter: Randall Leeds
> Priority: Minor
>
> Currently the skip parameter on _all_docs and views walks n nodes from the
> startkey to the first result but the inner nodes have counts in the reduction
> so some branches can be skipped entirely.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.