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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2015/05/28 10:45:17 UTC

[jira] [Updated] (OAK-2926) Fast result size estimate

     [ https://issues.apache.org/jira/browse/OAK-2926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Mueller updated OAK-2926:
--------------------------------
    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.


  was:
When asking for the correct result count 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 count, 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 count estimate is needed.


        Summary: Fast result size estimate  (was: Fast result count estimate)

> Fast result size estimate
> -------------------------
>
>                 Key: OAK-2926
>                 URL: https://issues.apache.org/jira/browse/OAK-2926
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: query
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)