pub const DEFAULT_AUTO_SPILL_MEMORY_THRESHOLD: usize = _; // 89_478_484usize
Expand description

The default for spilling from memory to rocksdb is 2 write buffers. Some initial tests found that 2 write buffers were the minimum memory usage of rocksdb when processing small amounts of data.

The calculation is based on the MEMTABLE_BUDGET, and is inverting the logic here: