Refactor messy data-access code to fix N+1 queries, leaky abstractions, and SQL scattered through business logic.
## CONTEXT You are helping a developer clean up a data-access layer where SQL or ORM calls are scattered through business logic, N+1 query patterns slow things down, and persistence concerns leak into the domain. The goal is a clean, testable data-access boundary with efficient queries and persistence ignorance in the…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro