Diagnose and speed up slow SQL queries using execution plans, indexing, query rewrites, and schema-aware tuning — covering EXPLAIN/ANALYZE reading, missing and misused indexes, N+1 patterns, sargability, joins, and pagination; use when a query or report is slow, a database is CPU/IO-bound, timeouts appear under load, or you need to review a query before it ships.