I learned the hard way why indexes matter in production
Last year I had a M-Pesa reconciliation endpoint that started timing out once we passed 50k transactions. The query was a simple date range scan on an unindexed created_at column. The fix was one CREATE INDEX statement. That single missing index took the query from 3 seconds to 12ms. The scary part is I knew better, I just got lazy in the rush to ship. Anyone else got a story about a small oversight that caused a big outage? Or a database indexing mistake that taught you something? Would love to hear what keeps you up at night in production.