You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Manfred Baedke (Jira)" <ji...@apache.org> on 2021/02/24 18:18:00 UTC
[jira] [Created] (OAK-9361) PrefetchIterator#getSize() may access
the internal iterator unnecessarily
Manfred Baedke created OAK-9361:
-----------------------------------
Summary: 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
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)