Refactoring prompt
Optimize Database Queries
Identify N+1 queries, add missing indexes, rewrite slow queries, and add performance monitoring to an existing application.
Optimize the database queries in {{project_name}}. ## ORM: {{orm}} | Database: {{database}} ## Current pain points: {{pain_points}} ### Code to Audit:…
The full prompt is free with an account.
Sign up free to read itIt has 6 blanks, such as {{project_name}}, {{orm}} and {{database}}. In Loopy you fill them in a form and copy the finished prompt in one click.
More refactoring prompts
See every refactoring prompt- RefactoringAdd TypeScript to Legacy JavaScriptIncrementally migrate a JavaScript codebase to TypeScript without breaking changes, starting with the most critical files.
- RefactoringRefactor with Zero RegressionsStructured refactoring prompt that ensures existing behavior is preserved while improving code quality.
- RefactoringTranslate Code Between LanguagesConvert code from one programming language to another while preserving logic, idioms, and error handling.

