[ https://issues.apache.org/jira/browse/OAK-7947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16725067#comment-16725067 ]
Thomas Mueller commented on OAK-7947: ------------------------------------- Thanks [~catholicon]! I attached a new patch, [OAK-7947_v2.patch|https://issues.apache.org/jira/secure/attachment/12952362/OAK-7947_v2.patch] that contains the changes that are needed and make sense: * IndexTracker.java: now checks that there is a child node ":index-definition". So for a new index, it should now not return the definition. * LucenePropertyIndex: returns LazyLuceneIndexNode instead of LuceneIndexNode. This is needed, otherwise acquireIndexNode() is called even if getIndexNode isn't called. (And acquireIndexNode downloads the index binaries.) * OakStreamingIndexFile: A simple change to log the directory name as well. (Not strictly needed, but very useful). * FulltextIndexPlanner: Only call getNumDocs() if the index definition doesn't contain a property "entryCount". (Not strictly needed, but should reduce reads). > Lazy loading of Lucene index files startup > ------------------------------------------ > > Key: OAK-7947 > URL: https://issues.apache.org/jira/browse/OAK-7947 > Project: Jackrabbit Oak > Issue Type: Improvement > Components: lucene, query > Reporter: Thomas Mueller > Assignee: Thomas Mueller > Priority: Major > Attachments: OAK-7947.patch, OAK-7947_v2.patch, > lucene-index-open-access.zip > > > Right now, all Lucene index binaries are loaded on startup (I think when the > first query is run, to do cost calculation). This is a performance problem if > the index files are large, and need to be downloaded from the data store. -- This message was sent by Atlassian JIRA (v7.6.3#76005)