Skip to content

Duplication computation for TieredMergePolicy's numDeletesToMerge [LUCENE-10041] #11079

@asfimport

Description

@asfimport

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.

 
.

IMG21.jpeg


Migrated from LUCENE-10041 by Feng Gui, updated Aug 16 2021
Attachments: IMG21.jpeg

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions