Part 3: Changing schemas safely
A composite index in the right column order took the query from four hundred milliseconds to two. The wrong order would have done nothing at all.
Premature optimization is the root of all evil, but a missing index is just a bug.
Tomás Reyes
Printed this out for our next retro. Really useful framing.
Printed this out for our next retro. Really useful framing.
Good question. It took about three weeks, most of it waiting for review and measuring the results.
Bookmarked. The part about writing things down before changing anything is underrated.
This matches our experience almost exactly, down to the part where the slow tail took longest to fix.