Write amplification (DB)
When a single logical write to the database causes several physical writes to disk. A central problem in LSM-tree-based storage engines (RocksDB, Cassandra), where the same data is rewritten over and over during compaction.
Cause: in an LSM tree, data is first written to a log and a memtable, then down to SSTables, and then compacted repeatedly to lower levels — each compaction reads and rewrites data. A metric: "10x write amplification" means 1 MB of logical data causes 10 MB of physical writes. Consequences: SSD wear, lower throughput, more I/O load. A trade-off against read and space amplification — the RUM conjecture says you can only optimize two of three. Tuning: compaction strategy (leveled vs tiered), level sizes. One of the most important numbers when tuning an LSM-based database. Related to read amplification and compaction.