principle-measure-query-cost
Apply before claiming a SQL or ORM query change is faster or cheaper. Run EXPLAIN ANALYZE (or the ORM's query count) before and after on the same input - reasoning like 'fewer joins' or 'one subquery instead of three' isn't proof on its own.
Pinned to revision af9fa64ed115, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.