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