You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Davide Giannella (JIRA)" <ji...@apache.org> on 2017/09/29 10:10:07 UTC

[jira] [Closed] (OAK-6683) Use less resource intensive method to determine number of docs in lucene index

     [ https://issues.apache.org/jira/browse/OAK-6683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davide Giannella closed OAK-6683.
---------------------------------

Bulk close for 1.7.8

> Use less resource intensive method to determine number of docs in lucene index
> ------------------------------------------------------------------------------
>
>                 Key: OAK-6683
>                 URL: https://issues.apache.org/jira/browse/OAK-6683
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.8, 1.7.8
>
>
> Currently LuceneIndexInfoProvider opens a DirectoryReader via OakDirectory which leads to very high memory consumption due to current design of OakDirectory (see OAK-3132).
> As we just need to determine the numDocs we can directly use the [SegmentInfos|http://lucene.apache.org/core/4_7_1/core/org/apache/lucene/index/SegmentInfos.html] to determine this information in a more efficient manner and avoid creating whole DirectoryReader



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)