jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-7947) Lazy loading of Lucene index files startup
Date Thu, 03 Jan 2019 11:15:00 GMT

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

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

It looks like tracker.acquireIndexNode not only acquires the index node, but also puts it
into the index tracker "indices" map.

To make the LucenePropertyIndexTest.reindexWithCOWWithoutIndexPath test pass, there are two
options:
* either change the query so the nodetype index can't be used, for example to "select * from
[mix:title] where [jcr:title] = 'x'", or
* don't use LazyLuceneIndexNode (or call getIndexNode() in its constructor)

To make the SynchronousPropertyIndexTest tests pass:

* either (in the tests) call runAsyncIndex() after creating the index definitions, or
* don't use LazyLuceneIndexNode (or call getIndexNode() in its constructor)

So the patch does change behavior: the index will only be available if the indexing cycle
is run. I think that's acceptable, so changing the tests is fine I think.


> 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, OAK-7947_v3.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)

Mime
View raw message