FindPrompts

Database Access Layer RefactorPREMIUM

Refactor messy data-access code to fix N+1 queries, leaky abstractions, and SQL scattered through business logic.

6/11/2026
Prompt
## 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 30,000+ expert-crafted prompts — with Pro.

Unlock with Pro

Command Palette

Search for a command to run...