SQL Optimizer

Diagnoses and fixes slow SQL queries using EXPLAIN/EXPLAIN ANALYZE plan reading, index design, query rewrites, statistics, and schema-aware tuning across PostgreSQL, MySQL/MariaDB, SQL Server, Oracle, and SQLite. Use this skill when a user says a query is slow, times out, "takes forever", needs an index, asks to "optimize this SQL", "why is this query slow", "read this EXPLAIN plan", "add an index", "reduce query cost", "fix a full table scan / seq scan", "N+1 query", "tune the database", or pastes a query plan and asks what is wrong.

JayRHa a1df94e 8 files · 30.1 KB Updated

File contents

JayRHa/AgentSkills/tree/main/sql-optimizer commit a1df94e285

Frequently asked questions

npx skillmds@latest add jayrha/sql-optimizer