---
name: "sql-optimizer"
description: "Diagnose slow queries using EXPLAIN ANALYZE, design B-tree/GIN indexes, and eliminate N+1 joins."
---

# SQL Query & Index Optimizer

Transforms 2000ms sluggish database queries into sub-5ms snappy lookups. Covers PostgreSQL and MySQL.

## Instructions and Rules
1. Read existing repository patterns before making modifications.
2. Adhere strictly to the workspace directory boundaries.
3. Verify changes with unit or integration tests before concluding.