Inspect the query plan with EXPLAIN ANALYZE to find sequential scans and missing indexes.
Why This Matters
Guessing at optimizations wastes effort and can make things worse; the plan shows the real bottleneck.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.