Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10041

Duplication computation for TieredMergePolicy's numDeletesToMerge

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 8.4
    • None
    • core/index
    • None
    • New

    Description

      In lucene 8.4 (Elasticsearch 7.6.2), all indices are enabled with soft-deletes. We found the TieredMergePolicy contains redundant query computation to acquire numDeletesToMerge for findMerges. According to code from getSortedBySegmentSize , I think we should reuse the result of numDeletesToMerge which can reduce 3% CPU and some IO overheads.

       
      .

      Attachments

        1. IMG21.jpeg
          694 kB
          Feng Gui

        Issue Links

          Activity

            People

              dnhatn Nhat Nguyen
              guifengleaf@gmail.com Feng Gui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m