mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
feat(mito): avoid buffering all batches for the same primary key (#2658)
* feat: Control merge reader by batch size * test: test heap have large range * fix: merge one batch * test: merge many duplicates * test: test reheap hot * feat: don't handle empty batch in merge reader
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -582,7 +582,9 @@ impl MergeReader {
|
||||
// Now key range of this node is behind the hottest node's.
|
||||
node.is_behind(hottest)
|
||||
} else {
|
||||
false
|
||||
// Setting this to false should not affect correctness but performance because
|
||||
// `refille_hot()` ensures the hottest node is correct.
|
||||
true
|
||||
};
|
||||
|
||||
if node_is_cold {
|
||||
|
||||
Reference in New Issue
Block a user