What problem does it solve?
This skill helps developers optimize SQL queries across PostgreSQL, MySQL, and H2, improving performance and ensuring cross-database compatibility for Lemline's multi-database architecture.
Core Features & Use Cases
- Cross-database query review and compatibility checks against PostgreSQL, MySQL, and H2.
- Index design guidance and automated recommendations for WHERE, ORDER BY, and join patterns.
- Execution plan analysis using EXPLAIN/EXPLAIN ANALYZE across all three databases, with actionable optimizations.
- Identification of common anti-patterns (N+1, function on indexed columns, missing limits) and practical fixes.
- Real-world scenarios: debugging slow queries, tuning complex analytics, and portable SQL design.
Quick Start
Provide a slow or complex query to the skill and receive an optimized version, index recommendations, and cross-database notes.