What problem does it solve?
This Skill addresses slow-performing SQL queries by providing a comprehensive approach to analysis, optimization, and performance benchmarking.
Core Features & Use Cases
- EXPLAIN Analysis: Interprets query execution plans to identify bottlenecks.
- Index Recommendations: Suggests optimal indexes for improved query speed.
- Query Rewrites: Offers strategies to refactor queries for better efficiency.
- Performance Benchmarking: Compares query performance before and after optimization.
- Automated Slow Query Detection: Configures and queries database logs for slow statements.
- Use Case: A developer is experiencing slow response times on a critical API endpoint. They can use this Skill to analyze the underlying SQL query, identify missing indexes or inefficient joins, and receive actionable steps to improve performance.
Quick Start
Use the sql-query-optimizer skill to analyze the provided SQL query and suggest optimizations.