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

Thomas Mueller commented on OAK-7947:
-------------------------------------

> Would it be feasible to add a way for users to trigger downloading of indexes?

[~mduerig] yes, we can add something like this. One idea is to load all indexes 
except those marked as deprecated, or we can add a new flag (e.g. "lazyLoad"). 
I suggest we wait with this until lazy loading works as expected, so that we 
are sure it works as expected. (If we add such a feature very early on, there 
is a risk that lazy loading isn't well tested on real problems, as it's rare. 
I'm not suggesting we don't add unit tests, but here it's a bit hard to come up 
with unit tests that match reality.)

> 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
>             Fix For: 1.12
>
>         Attachments: OAK-7947.patch, OAK-7947_v2.patch, OAK-7947_v3.patch, 
> OAK-7947_v4.patch, OAK-7947_v5.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)

Reply via email to