{
  "slug": "database-write-amplification",
  "term": "Database write amplification",
  "aliases": [],
  "definition": "Database byte write amplification is storage-engine output bytes written divided by logical input bytes over a stated interval and accounting boundary.",
  "note": "Specify whether input counts keys, values or both, and whether output includes WAL, compaction and value-store cleaning. This ratio is distinct from host-to-NAND write amplification. [wisckey]\n\nAggregate compatible measurements by adding their output and input byte counters, then dividing the totals. An arithmetic mean of per-batch ratios generally gives a different answer; weighting those ratios by their input bytes recovers the aggregate. Keep log-only cleaning ratios separate from whole-engine amplification. [hesela-kv]\n\nTRIAD's paper reports (flushed bytes + compacted bytes) / flushed bytes. That denominator is not logical application input. Reducing both counted byte totals proportionally leaves this ratio unchanged; retain the original counters when comparing work. [triad-paper]",
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "related": [
    "write-amplification",
    "lsm-tree",
    "key-value-separation",
    "compaction",
    "read-amplification",
    "space-amplification",
    "value-log",
    "triad",
    "rum-conjecture"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "wisckey",
      "title": "Lu et al. WiscKey: Separating Keys from Values in SSD-conscious Storage. FAST 2016, pp. 133-148, sections 3.2-3.3.",
      "url": "https://files.usenix.org/s3fs-public/cdn/fast16-papers-lu.pdf",
      "accessed": "2026-11-11"
    },
    {
      "id": "hesela-kv",
      "title": "Key-value separation: the cleaning bill moves elsewhere",
      "url": "https://hesela.com/analyses/key-value-separation-cleaning-cost/",
      "accessed": "2026-10-19"
    },
    {
      "id": "triad-paper",
      "title": "Balmau et al. TRIAD. USENIX ATC 2017, pp. 363-375; sections 4.1-4.3 and 5.1-5.3.",
      "url": "https://www.usenix.org/system/files/conference/atc17/atc17-balmau.pdf",
      "accessed": "2026-11-10"
    }
  ],
  "updated": "2026-11-13"
}
