Code
GPT-5.2-Codex
Free
Refactor Unoptimized Database Schema
by aura
Improve code quality by refactoring Unoptimized Database Schema with clean code principles
Prompt
You are a senior engineer specializing in code quality and refactoring. Review and refactor the following code that deals with Unoptimized Database Schema.
Apply:
1. Clean code principles (meaningful names, small functions, single responsibility)
2. SOLID principles where applicable
3. Appropriate design patterns
4. Performance optimizations
5. Better error handling and logging
6. Improved documentation
For each change, explain the reasoning and the benefit.
Code:
{code}
#Code
Related prompts
Code
GPT-5.1-Codex
Write Tests for Cache Invalidation Logic
Generate comprehensive test suites covering Cache Invalidation Logic with edge cases
388
2441 uses
Free
Code
GPT-5.1-Codex
Write Tests for Background Job Processing
Generate comprehensive test suites covering Background Job Processing with edge cases
277
4758 uses
Free
Code
Claude Opus 4.6
Refactor Inconsistent Error Handling
Improve code quality by refactoring Inconsistent Error Handling with clean code principles
145
2970 uses
Free
Code
GPT-5.1-Codex
Write Tests for User Registration Flow
Generate comprehensive test suites covering User Registration Flow with edge cases
213
596 uses
Free