Sql Optimization Patterns
Helps with optimization, patterns as part of working with databases and data persistence workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add ravinani02-sql-optimization-patterns npx -- -y @trustedskills/ravinani02-sql-optimization-patterns
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"ravinani02-sql-optimization-patterns": {
"command": "npx",
"args": [
"-y",
"@trustedskills/ravinani02-sql-optimization-patterns"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides SQL query optimization patterns to improve database performance. It helps identify and suggest changes to inefficient queries, focusing on common anti-patterns and best practices for faster execution. The skill aims to reduce query latency and overall database load by applying proven optimization techniques.
When to use it
- Slow Query Analysis: When a specific SQL query is identified as taking an unexpectedly long time to execute.
- Performance Bottlenecks: To address general performance slowdowns within a database application.
- Query Refactoring: During code reviews or when refactoring existing SQL queries for improved efficiency.
- Database Tuning: As part of a broader strategy for optimizing the overall health and responsiveness of a database system.
Key capabilities
- Identifies common SQL anti-patterns
- Suggests optimization techniques
- Focuses on query execution speed
- Applies best practices for database performance
Example prompts
- "Analyze this SQL query:
SELECT * FROM orders WHERE customer_id = 123;and suggest optimizations." - "What are some common reasons why a JOIN operation might be slow?"
- "I'm seeing high latency on my product listing query. Can you help me optimize it?"
Tips & gotchas
The skill is most effective when provided with the full SQL query text. It assumes a basic understanding of SQL concepts and may require some manual implementation of suggested changes.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.