The same query: 2ms or 3,000ms — the difference is one B-tree. How database indexes actually work, composite column order, covering indexes, and when the planner says no.