jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Richard (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-3600) Cache property index definitions
Date Mon, 09 Nov 2015 09:13:10 GMT
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

View raw message