Skip to main content
InterviewHubPRO
Section Overview
Q32

Question 32 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

64%
SQL & Relational Databases (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

What is Write Amplification in Relational Databases?

senior LevelDatabases & SQL

In Simple Words: The ratio of bytes written to physical storage compared to the logical bytes written by the user:

  • Inserting a 100-byte row into a table with 6 indexes:
    • Writes to Table Heap (16 KB page).
    • Writes to 6 separate B-Tree Index pages ($6 \times 16\text{ KB}$).
    • Writes to Write-Ahead Log (WAL / Redo log).
  • Can cause write amplification of 20x to 50x! Minimize unnecessary indexes on write-heavy tables.