facebook / facebook/rocksdb

compact L0 file to L0 when L0 is too small

Open
#10,706 7 comments 1 reaction 1 assignee Claimed by @lintanghui View on GitHub
enhancement
Dominant language
C++
Stars
32.1k
Forks
6.9k
Avg merge
32m
Merged PRs (30d)
1

Description

in our case, we will do checkpoint by period, in some case, with period checkpoint, the L0 file is small, when L0 file number reach 4, it will trigger compaction and pick up L1 file together. which made huge write amplification。
image
in this case, maybe we can compaction L0 file to L0 instead of L1 ,when total size of L0 files is smaller than `target_file_size_base`

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.