Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6683

Use less resource intensive method to determine number of docs in lucene index

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.8, 1.8.0
    • lucene
    • None

    Description

      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 to determine this information in a more efficient manner and avoid creating whole DirectoryReader

      Attachments

        Activity

          People

            chetanm Chetan Mehrotra
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: