SQL Query Optimization

Use when a SQL query is slow, when EXPLAIN ANALYZE output is confusing, or when designing a query that will run against a non-trivial dataset (millions of rows, multi-tenant table, partitioned data). Triggers: "why is this slow", "this query times out", "optimize this query", "the report takes 20 minutes". Do not use for query syntax errors (use the database's error message), schema design questions (use a dedicated schema skill), or NoSQL / document-store queries.

Mine-FNL Updated

File contents

Mine-FNL/skillmd-lint/tree/main/examples/sql-query-optimization commit 57586ff88e

Frequently asked questions

npx skillmds@latest add mine-fnl/sql-query-optimization