You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "jpountz (via GitHub)" <gi...@apache.org> on 2024/11/20 18:32:04 UTC
Re: [PR] LUCENE-10073: Reduce merging overhead of NRT by using a greater mergeFactor on tiny segments. [lucene]
jpountz commented on code in PR #266:
URL: https://github.com/apache/lucene/pull/266#discussion_r1850802366
##########
lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java:
##########
@@ -495,36 +495,36 @@ private MergeSpecification doFindMerges(
for (int startIdx = 0; startIdx < sortedEligible.size(); startIdx++) {
long totAfterMergeBytes = 0;
-
final List<SegmentCommitInfo> candidate = new ArrayList<>();
boolean hitTooLarge = false;
- long bytesThisMerge = 0;
for (int idx = startIdx;
idx < sortedEligible.size()
- && candidate.size() < mergeFactor
- && bytesThisMerge < maxMergedSegmentBytes;
+ && candidate.size() < maxMergeAtOnce
+ // We allow merging more that mergeFactor segments together if the merged segment
Review Comment:
Thank you, fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org