Enum OptimizeKeyCommonPrefix
- Namespace
- RocksDbNet
- Assembly
- RocksDb.Net.dll
When a block stores the user-key prefix all its keys share once, instead of at every restart point. Needs FormatVersion 8 or later.
public enum OptimizeKeyCommonPrefix
Fields
Disabled = 0Never.
Enabled = 2With every comparator. Custom comparators get the smaller blocks but not the faster seek, and pay a little read CPU to rebuild full keys.
IfFastSeek = 1Only where it also speeds up
Seek, which is with the built-in bytewise or reverse-bytewise comparator. The default.
Remarks
Mirrored from BlockBasedTableOptions::OptimizeKeyCommonPrefix in
include/rocksdb/table.h because the C API declares this parameter as a
plain int.