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 2013/01/10 10:20:14 UTC
[jira] [Resolved] (OAK-537) The Property2Index eagerly and
unnecessarily fetches all data
[ https://issues.apache.org/jira/browse/OAK-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Mueller resolved OAK-537.
--------------------------------
Resolution: Fixed
Revision 1431216
> The Property2Index eagerly and unnecessarily fetches all data
> -------------------------------------------------------------
>
> Key: OAK-537
> URL: https://issues.apache.org/jira/browse/OAK-537
> Project: Jackrabbit Oak
> Issue Type: Bug
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Priority: Minor
>
> Currently, the Property2Index (as well as the PropertyIndex and the NodeTypeIndex) loads all paths into a hash set. This is even the case for the getCost operation, which should be fast and therefore not load too much data.
> This strategy can cause ouf-of-memory if the result is too big. Also, loading all data is not necessary unless the user reads all rows.
> Instead, the index should only load data on demand. Also, the getCost operation should only estimate the number of read nodes, and not actually read the data.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira