Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about rocksdb compaction #12817

Closed
wanglinke521 opened this issue Jun 27, 2024 · 1 comment
Closed

Questions about rocksdb compaction #12817

wanglinke521 opened this issue Jun 27, 2024 · 1 comment

Comments

@wanglinke521
Copy link

Note: Please use Issues only for bug reports. For questions, discussions, feature requests, etc. post to dev group: https://groups.google.com/forum/#!forum/rocksdb or https://www.facebook.com/groups/rocksdb.dev

When I delete the sst file in L0-L3 layers of rocksdb, will the sst file in L4 layer return to L0-L3 or go to L5 after compaction? Can you help answer my question? Thank you very much.

@ajkr
Copy link
Contributor

ajkr commented Jun 29, 2024

Automatic compaction merges files gradually to deeper levels, i.e., L4+. There are some manual compaction settings that can write files to shallower empty levels (L1-L3), like CompactRange() with CompactRangeOptions::change_level set to true.

@ajkr ajkr closed this as completed Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants