facebook / facebook/rocksdb

Proposal: Add DB::CompactRanges()

Open
#4,933 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.