Skip to main content
PProfileMatch
← Path

Database Indexing · Database Indexing Costs: Write Overhead, Bloat and When Not to Index

0 XP
  1. 1 current stop: learning
  2. 2 upcoming
  3. 3 upcoming
  4. 4 upcoming
  5. 5 upcoming

Finish after stop 5

Stop 1 of 5 · Warehouse loading dock

Trick to keep in mind+3 XP

One insert, many writes: every index adds a step to every row.

Inserting a row writes it to the table and also adds an entry to each index on that table, and any of those can force a page to split. This is write amplification. A bulk load that was fine with no extra indexes can slow dramatically after a few are added, because each row now fans out into several physical writes.

Read it once, then a question tests whether the trick stuck.