Go · Troubleshooting
From 300 calls to 1how I learned that optimization changes failure modes
Validation was dying on timeouts. Within 30 minutes I had an answer, "it's N+1, batch it," and it was only half right. Reaching the final design took two changes of direction, and since the process taught me more than the code, I'm writing it down.