pub fn pin_index_env_enabled() -> boolExpand description
Gate A: cache + pin SST index/filter blocks, process-wide
(on by default; WARATAH_PIN_INDEX=0 disables). Child processes
inherit the variable, so setting it before waratah start / waratah import covers the whole local cluster. See
RocksDbTuning::pin_index_in_cache for the semantics.
Default on (measured 2026-11-06, lubm-100): the cold pass — the first
query a fresh process serves — ran 4× faster with pinning (7.6 ms →
1.8 ms) because the startup warm walk’s data-block fill no longer
evicts the index blocks a point seek consults; steady state is
unchanged. Pinned volume is index blocks plus, when
sst_filter_env_enabled is on, the per-SST prefix-bloom filter
blocks of the prefix_filter column families — roughly ~1% of
partition bytes for indexes at the 4 KiB block size, plus
distinct-leading-terms × PREFIX_FILTER_BITS_PER_KEY / 8 for filters.
The open path raises the cache budget to keep both inside it (see
[DEFAULT_BLOCK_CACHE_BYTES]); that is the revisit condition if very
large single-partition stores still show budget pressure.