Database / RocksDB Basics Interview Questions
What are Column Families in RocksDB?
Column Families let a single RocksDB database instance maintain multiple, independently configured, logically separate key spaces within the same database.
- Each column family can have its own compaction style, comparator, and other tuning options
- All column families in a database share the same underlying write-ahead log, keeping writes across them consistent
- Commonly used to store logically distinct kinds of data, like an index versus the actual records, within a single database instance
This feature is what lets an application avoid running multiple separate RocksDB instances just to keep different categories of data configured and organized differently.
More Related questions...