πŸ—œοΈ RocksDB Compaction Strategies

Leveled, Universal & FIFO β€” See the Tradeoffs in Action

Leveled compaction: each level is 10x larger. Files with overlapping key ranges are merged into the next level. Best balance of read/write/space amplification.
Write Amplification 1.0x
Bytes written to disk / bytes from app
Read Amplification 1
Locations checked per read
Space Amplification