Skip to content

RocksDB Options File

Yueh-Hsuan Chiang edited this page Dec 4, 2015 · 8 revisions

In RocksDB 4.3, we added a set of features that makes managing RocksDB options easier.

  1. Each RocksDB database will now automatically persist its current set of options into a file on every successful call of DB::Open(), SetOptions(), and CreateColumnFamily() / DropColumnFamily().

  2. LoadLatestOptions() / LoadOptionsFromFile(): Construct RocksDB options object from an options file.

  3. CheckOptionsCompatibility: Compatibility check of two sets of RocksDB options.

With the above options file support, developers no longer need to maintain the full set of options of a previously-created RocksDB instance. In addition, when changing options is needed, CheckOptionsCompatibility() can further make sure the resulting set of Options can successfully open the same RocksDB database without corrupting the underlying data.

Contents

Clone this wiki locally