Fetch related data with a join or a single batched query instead of one query per row.
Why This Matters
Issuing one query per parent row multiplies round trips and degrades latency catastrophically as data grows.
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.