[CASSANDRA-21083][trunk] Optimize memtable flush logic#4536
Closed
netudima wants to merge 1 commit intoapache:trunkfrom
Closed
[CASSANDRA-21083][trunk] Optimize memtable flush logic#4536netudima wants to merge 1 commit intoapache:trunkfrom
netudima wants to merge 1 commit intoapache:trunkfrom
Conversation
7fa2bf3 to
716d6be
Compare
blambov
reviewed
Jan 9, 2026
blambov
approved these changes
Jan 16, 2026
Contributor
Author
Contributor
Author
|
CPU flush time per partition (get_flush_cpu_time.sh), microseconds (per partition metric is used to normalize data, because heap and offheap flushing triggers on different thresholds, so SSTable size is is different):
note: for the option so, it looks like |
add more flushing stats: partitions/rows, bytes rate, CPU and heap allocation for the flushing thread avoid columns filtering overheads for unfilteredIterator do not re-map colums in serializeRowBody if they haven't changed reduce allocations during serialization of NativeClustering add fast return for BTreeRow.hasComplexDeletion, avoid column.name.bytes.hashCode if not needed, avoid capturing lambda allocation in UnfilteredSerializer.serializeRowBody check if Guardrails enabled at the beginning of writing, avoid hidden auto-boxing for logging of primitive parameters split call sites for in Cell serialize logic, make isCounterCell cheaper (avoid megamorphic call + cache isCounterColumn) invoke metadataCollector.updateClusteringValues only for first and last clustering key in a partition enforce inlining for MinMaxIntTracker/MinMaxLongTracker Patch by Dmitry Konstantinov; reviewed by Branimir Lambov for CASSANDRA-21083
de0346a to
ef49f50
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.