Details
Description
When asking for the correct result size of a query, the complete result needs to be read, so that access rights checks are made, and (unless the index is known to be up-to-date, and can process all conditions) so that the existence and all query conditions are checked.
Jackrabbit 2.x supports a fast way to get an estimate of the result size, without doing access rights checks. See also JCR-3858.
Please note that according to the JCR API, NodeIterator.getSize() may return -1 (for "unknown"), and in Oak this is currently done if counting is slow. This would also need to be disabled if a fast result size estimate is needed.
Attachments
Attachments
Issue Links
- relates to
-
OAK-2730 Faster result count estimation for QueryResult on lines of resultFetchSize support in JR2
- Resolved
-
OAK-2807 Improve getSize performance for "public" content
- Resolved
-
OAK-2914 scalabilty benchmark for queries getSize()
- Resolved
-
OAK-2977 Fast result size estimate: OSGi configuration
- Closed