Code
GPT-5.2-Codex
Free
Refactor Unoptimized Database Schema
by PaulSmam
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-4
Code Review Assistant
Thorough code reviews with security and performance notes.
383
258 uses
Free
Code
gpt-4o
API Documentation Generator
Turn endpoint specs into developer-friendly docs.
71
2572 uses
Free
Code
claude-3
SQL Query Optimizer
Analyze slow queries and suggest indexes.
53
2578 uses
Free
Code
claude-3.5
Unit Test Generator
Generate PHPUnit/Jest tests from function signatures.
150
1490 uses
Free