Proposal: Add DB::CompactRanges()
Open
- Dominant language
- C++
- Stars
- 32.1k
- Forks
- 6.9k
- Avg merge
- 32m
- Merged PRs (30d)
- 1
Description
### Expected behavior
When we attemp to compact multile ranges, we expect to call `DB::CompactRanges(multiRanges, ...)`, if there are many ranges lie in same SST file(s), we expect `CompactRanges` will process the ranges once.
### Actual behavior
When we attemp to compact multile ranges, we need to call `DB::CompactRange(oneRange, ...)` multi times, if there are many ranges lie in same SST file(s), the data will be processed multi times in each `CompactRange' call.
### Steps to reproduce the behavior
Load data into a DB, then compact multiple ranges.
Contributor guide
Assessment
This issue has not been assessed yet.