You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "kkewwei (via GitHub)" <gi...@apache.org> on 2026/05/09 04:28:13 UTC
[I] Optimize StoredFields merge strategy based on chunk deletion ratio [lucene]
kkewwei opened a new issue, #16045:
URL: https://github.com/apache/lucene/issues/16045
### Description
For StoredField merging, the merge strategy has to switch from the `BULK` mode to the `DOC` mode even if only a document is deleted, which significantly increases merging overhead.
StoredField is compressed at the chunk granularity I propose introducing a new merge strategy:
- For the chunk with no deleted documents, retain `copyChunk `during merging;
- For the chunk containing deleted documents, fall back to `copyOneDoc`.
Furthermore, we can leverage the segment deletion ratio (e.g., a threshold below 5%) as a condition to enable or disable this optimized merging logic.
--
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.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
Re: [I] Optimize StoredFields merge strategy based on chunk deletion ratio [lucene]
Posted by "wwwa1ter (via GitHub)" <gi...@apache.org>.
wwwa1ter commented on issue #16045:
URL: https://github.com/apache/lucene/issues/16045#issuecomment-5750354710
Hi @kkewwei, PR #16690 implements the hybrid merge strategy from #16045.
If you have a moment to review, that would be super helpful.
Happy to make changes based on your suggestions.
--
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