domains / families / data / sql-optimization-patterns

sql-optimization-patterns

combined

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance. Diagnose slow SQL with query plans, preserve query results, and verify indexing or query changes against representative data.

When to use

When not to use

Skill page

Conflict

The two copies share the same high-level scope and resource pointer, but the second copy adds material safety and verification constraints that the first lacks. The first copy is a generic wrapper that defers to a playbook, while the second copy specifies read-only starts, authorization for DDL, result-set comparison before performance comparison, and the side-effect risks of EXPLAIN ANALYZE. Crowning the first copy would hide these real operational constraints, and crowning the second would lose the first's broader framing. They overlap but each has steps the other lacks, so they should be combined.