What problem does it solve? Slow SQL queries and database performance bottlenecks degrade application responsiveness, and diagnosing them requires deep knowledge of indexing, join strategies, and query execution plans across different database engines. ## Core Features & Use Cases - Query Rewriting: Converts anti-patterns like SELECT *, correlated subqueries, and function-wrapped WHERE clauses into index-friendly equivalents. - Index Strategy Design: Recommends composite, covering, and partial indexes matched to actual query patterns. - Cross-Database Tuning: Provides optimization techniques for MySQL, PostgreSQL, SQL Server, and Oracle, including slow-query identification queries for each engine. - Use Case: A developer notices a paginated product listing takes seconds to load at high offsets; the Skill rewrites the OFFSET-based pagination into cursor-based pagination and suggests the supporting index. ## Quick Start Ask the assistant to analyze and optimize a slow SQL query or review the database queries in the selected code for performance bottlenecks.