What problem does it solve? Slow database queries, missing indexes, and misconfigured servers degrade application performance, and diagnosing root causes requires deep expertise in execution plans, statistics, and engine-specific tuning. ## Core Features & Use Cases - Query Analysis: Capture and interpret EXPLAIN ANALYZE output to identify sequential scans, bad join strategies, stale statistics, and low buffer cache hit rates. - Index Design: Create covering, partial, expression, GIN, and GiST indexes with correct column ordering, and detect redundant or unused indexes. - Configuration Tuning: Optimize PostgreSQL settings (shared_buffers, work_mem, autovacuum, WAL) and MySQL settings (InnoDB buffer pool, I/O capacity, slow query log). - Use Case: A dashboard endpoint takes 8 seconds to load. Use this Skill to capture the baseline execution plan, discover a missing composite index on the orders table, create it concurrently, and validate the query drops to under 100ms. ## Quick Start Analyze this slow PostgreSQL query, explain the execution plan bottlenecks, and recommend indexes and configuration changes with before-and-after validation queries.