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 "Joel Richard (JIRA)" <ji...@apache.org> on 2015/11/09 10:13:10 UTC

[jira] [Created] (OAK-3600) Cache property index definitions

Joel Richard created OAK-3600:
---------------------------------

             Summary: Cache property index definitions
                 Key: OAK-3600
                 URL: https://issues.apache.org/jira/browse/OAK-3600
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: core, query
    Affects Versions: 1.3.9
            Reporter: Joel Richard


At the moment, most of the time of the execution plan calculation (often 70%) is spent in PropertyIndex.getCost. Therefore, it would make sense to cache the property index definitions in a map<property name, plan> which avoids all unnecessary traversal/repository operations.

This cache could either be attached to the session or expire after a few seconds because the problem is not that createPlan is slow itself, but is just called too often.



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