Function solana_ledger::blockstore_db::get_cf_options_fifo
source · fn get_cf_options_fifo<C: 'static + Column + ColumnName>(
max_cf_size: &u64,
column_options: &LedgerColumnOptions
) -> Options
Expand description
Returns the RocksDB Column Family Options which use FIFO Compaction.
Note that this CF options is optimized for workloads which write-keys are mostly monotonically increasing over time. For workloads where write-keys do not follow any order in general should use get_cf_options instead.
- [
max_cf_size
]: the maximum allowed column family size. Note that rocksdb will start deleting the oldest SST file when the column family size reachesmax_cf_size
-FIFO_WRITE_BUFFER_SIZE
to strictly maintain the size limit.