[ 
https://issues.apache.org/jira/browse/OAK-7947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16712595#comment-16712595
 ] 

Chetan Mehrotra commented on OAK-7947:
--------------------------------------

[~tmueller] One reason for doing eager loading was to avoid contention in 
queries hitting at very start. To make is lazy what we can do is store the data 
points required for index planning in index data node itself in repository. So 
stuff like numDocs and field count etc can recorded in repo upon index close.

Then at least for index planning phase we need not open the IndexWriter at all

> 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
>
>
> 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)

Reply via email to