What problem does it solve? Writing and tuning complex SQL for modern databases is error-prone and time-consuming, especially when dealing with query plans, indexing strategies, and hybrid OLTP/OLAP workloads across cloud platforms. ## Core Features & Use Cases - Query Writing & Optimization: Builds complex analytical queries with window functions, recursive CTEs, and advanced JOINs, then validates them with EXPLAIN plans. - Performance Tuning: Designs indexing strategies, partitioning schemes, and statistics management for large tables and time-series data. - Schema & Architecture Design: Covers dimensional modeling, data vault, multi-tenant SaaS schemas, and cloud-native platforms like Snowflake, BigQuery, Aurora, and PostgreSQL. - Use Case: Optimize a slow analytical query over a billion-row Snowflake table by inspecting the execution plan, adding appropriate indexes or clustering keys, and validating performance under realistic load. ## Quick Start Ask the assistant to optimize a slow SQL query by sharing the query text, table schema, and the output of EXPLAIN from your database.