Storage glossary · JSON corpus · llms.txt · hesela.com

tiered-compaction · shipping · also Size-tiered compaction

Tiered compaction

Tiered compaction allows multiple sorted runs to accumulate and merges groups of runs into typically larger runs instead of maintaining one run at every tier.

Related Observatory article: Tiered compaction on hesela.com

Policies commonly group similarly sized runs; exact selection rules vary. Tiering generally reduces rewriting relative to leveling while retaining more runs to search and more obsolete data between merges. These are trade-offs, not fixed amplification factors. [1] Universal compaction is RocksDB's implementation in this family, not a synonym for every tiered policy. It selects runs consecutive in age order; one run can span several SST files. Its space trigger is an estimate, not a hard limit on disk use. [2]

Relations

related
lsm-tree, compaction, leveled-compaction, read-amplification, space-amplification

Citations

  1. RocksDB project. Compaction: leveled, tiered and hybrid policies. (accessed 2026-10-14)
  2. RocksDB project. Universal Compaction: run selection, temporary space and amplification heuristic. (accessed 2026-10-14)
  3. Hesela. Bloom filters: optimize the lookup, not each filter; compaction and measurement boundaries. (accessed 2026-10-14)

JSON: /data/terms/tiered-compaction.json