Why Your MySQL Queries Are Slow Even After Adding Indexes (And How We Fixed most of Them in Production)

At a fintech startup I worked at, we spent 3 weeks chasing a “mystery latency spike” in our subscription renewal service—query latency jumped from 12ms to 420ms during peak hour, *only* on Tuesdays. The `EXPLAIN` plan showed “Using index”, `innodb_bu...