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

How to avoid linear slowdown of column family creation? #12888

Open
sadderchris opened this issue Jul 25, 2024 · 0 comments
Open

How to avoid linear slowdown of column family creation? #12888

sadderchris opened this issue Jul 25, 2024 · 0 comments

Comments

@sadderchris
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

Hi folks,

I have an application that dynamically creates column families. One thing I've noticed while monitoring it is that column family creation slows down linearly with the number of column families that already exist in the DB. Having done some digging within RocksDB to understand why, it seems the reason here is that RocksDB rewrites and re-parses the OPTIONS file (which gets quite large over time) in its entirety with every new column family that is created.

  • Why does WrapUpColumnFamilyCreation re-write the entire OPTIONS file instead of append (or even copy + append) the new column family details?
  • Why does persisting the new options file require reading/verifying what was written?
  • Is it possible to make column family creation faster?
  • Are there any options I can configure that prevent column family creation from slowing down as more column families are added to a DB?

Thank you for your time.

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

1 participant