Hacker News new | ask | show | jobs
by pjscott 1681 days ago
One of the best database habits I've ever developed is to run EXPLAIN on every query that I expect to run repeatedly, then sanity-check the output. It's very little effort, and has prevented so much hassle.
1 comments

If we weren't using underwhelming ORM DSLs, I'd love to use/write a github bot that automatically runs EXPLAIN ANALYZE on queries updated in a PR and post the query plan!
You can do that still. Just a bit more work to evaluate the ORM layer first.