POST-MORTEM LEDGER // 10 PRODUCTION INCIDENTS

Hard Problems & Learnings

Ten incidents where production pressure exposed a deeper problem. Each follows failure โ†’ diagnosis โ†’ decision โ†’ recovery โ†’ lesson.

See also: full incident log and Debezium 50M-row snapshot deep-dive.

DOCUMENTED INCIDENTS
10RECORDS
BEST DIAGNOSIS WIN
360xFASTER
COST REDUCTION (INC-08)
6x
PLATFORM PATTERN ADOPTED
1

Problem

Paginated queries timing out. Team had exhausted index tuning โ€” every optimization lever was maxed. Root issue: join happened before pagination. Materializing millions of rows, then limiting to 100, is cardinality inversion.

Solution

Reverse operation order: LIMIT from primary table first, then join only for those 100 rows. Changed cardinality from millions-in-join to 100-in-join.

Result

Response time: 3+ minutes โ†’ under 500ms (360x faster). Key insight: separates query tuning from query architecture.

Ten Incidents as a Progression

01โ€“03
Senior
Query shape, lock contention, customer insight โ€” Foundation of technical judgment
04โ€“05
Staff
Architecture under deadline, process improvement โ€” Own systems, build process
06โ€“10
Principal
Leadership under crisis, systemic patterns, algorithmic optimization, database-specific constraints, resilience patterns โ€” Mentor, recognize incompatibility, solve elegantly, adopt platform patterns