You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Feng Gui (Jira)" <ji...@apache.org> on 2021/07/29 18:22:00 UTC

[jira] [Created] (LUCENE-10041) Duplication computation for TieredMergePolicy's numDeletesToMerge

Feng Gui created LUCENE-10041:
---------------------------------

             Summary: Duplication computation for TieredMergePolicy's numDeletesToMerge
                 Key: LUCENE-10041
                 URL: https://issues.apache.org/jira/browse/LUCENE-10041
             Project: Lucene - Core
          Issue Type: Improvement
          Components: core/index
    Affects Versions: 8.4
         Environment: !image-2021-07-30-02-20-03-530.png!
            Reporter: Feng Gui


In lucene 8.4 (Elasticsearch 7.6.2),all indices is soft-deletes enabled. We found the *TieredMergePolicy* contains redundant query computation for acquire numDeletesToMerge. According  to code from  [getSortedBySegmentSize|https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java#L303] , we should reuse the result of numDeletesToMerge which can reduce 3% CPU and some IO overheads。

 

  !image-2021-07-30-02-19-21-417.png!

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org