Skip to content
Discussion options

You must be logged in to vote

Thanks for the detailed report and minimal reproduction. Your analysis is consistent with the current implementation: small overwrites can fragment a large slice enough for a subsequent read to trigger compaction, rewriting the full 64 MiB range.

We recognize that this strategy can cause excessive I/O amplification for workloads like yours. Related improvements are tracked in [#5008], and we plan to optimize the compaction strategy to better balance read performance and compaction cost. Your reproduction provides a useful test case for evaluating those changes.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@njutli
Comment options

Answer selected by njutli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants