The BDBAFH Chronicles #008: The 85-Index Graveyard & Write Bloat
A DBA hobbyist on the backend team added 85 composite indexes to a single 50-million-row orders table to optimize every query permutation he could construct.
Incident #008 of the BDBAFH Chronicles: The 85-Index Graveyard & Write Bloat. Dark-humor fiction: no real people, companies or incidents.

A DBA hobbyist on the backend team added 85 composite indexes to a single 50-million-row orders table to optimize every query permutation he could construct.
SELECT queries were fast, but INSERT and UPDATE latency ballooned by 4,000% because the engine had to update 85 B-Trees on every write.
I analyzed pg_stat_user_indexes and dropped 78 unused indexes in production, reclaiming 180GB of disk space and restoring write speeds.
I then set a rule on staging: every CREATE INDEX statement submitted by his user ID calculated the storage maintenance cost and subtracted that exact amount from his department’s quarterly swag budget in Slack.
The BDBAFH Chronicles are works of dark-humor fiction inspired by the Bastard Operator From Hell and The Daily WTF. Names, companies and incidents are invented, and any resemblance to real ones is coincidental. Commands and outputs are illustrative and untested: do not run them on a system you care about.