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 "Amit Jain (JIRA)" <ji...@apache.org> on 2014/09/30 09:28:53 UTC

[jira] [Updated] (OAK-1529) The storage backends should have an estimate on the number of nodes below a given path

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

Amit Jain updated OAK-1529:
---------------------------
    Fix Version/s:     (was: 1.1)
                   1.1.1

> The storage backends should have an estimate on the number of nodes below a given path
> --------------------------------------------------------------------------------------
>
>                 Key: OAK-1529
>                 URL: https://issues.apache.org/jira/browse/OAK-1529
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: core, query
>            Reporter: Thomas Mueller
>            Priority: Minor
>             Fix For: 1.1.1
>
>
> The traversal index currently can't do a good estimate on how many nodes are to be traversed below a given path. To find out, it has to traverse the nodes. That's unfortunate, as some queries would be much faster if traversal is used.
> One way to solve the problem is to let the storage backends keep a estimated count of the number of nodes below a given path. That estimation doesn't need to be accurate. It could be updated (for example) on average for every 100th added / removed node in a background thread (with a probability 1%, adjust descendant counts for paths in memory and periodically flush to disk).



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