[
https://issues.apache.org/jira/browse/OAK-9361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17290169#comment-17290169
]
Manfred Baedke commented on OAK-9361:
-------------------------------------
Attached patch proposal.
> PrefetchIterator#getSize() may access the internal iterator unnecessarily
> -------------------------------------------------------------------------
>
> Key: OAK-9361
> URL: https://issues.apache.org/jira/browse/OAK-9361
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: jcr
> Reporter: Manfred Baedke
> Assignee: Manfred Baedke
> Priority: Minor
> Attachments: OAK-9361.patch
>
>
> If fastSize is enabled and minPrefetch is 0, there is no need to check the
> internal iterator for the availability of a next value, which can be
> expensive in edge cases (e.g. if the result is very large but the caller
> actually doesn't have access rights to any of the entries).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)