What problem does it solve?
Manually diagnosing slow ClickHouse performance and tuning inefficient queries requires deep expertise in ClickHouse internals, index types, and optimizer settings that most database users and administrators lack, leading to wasted time and suboptimal performance.
Core Features & Use Cases
- Autonomous Slow Database Diagnose Loop: Automatically identifies the top slow query patterns from system tables without a user-provided query, flagging high total duration, tail latency outliers, and error-prone patterns.
- EXPLAIN Analysis Guidance: Provides structured interpretation of EXPLAIN PLAN, PIPELINE, and INDEXES outputs to identify full table scans, missing index usage, and excessive granule reads.
- Ranked Optimization Recommendations: Generates actionable, reviewable suggestions for skip indexes, projections, partition keys, PREWHERE rewrites, and materialized views, complete with DDL text, impact estimates, and risk assessments.
- Use Case: A ClickHouse admin noticing cluster slowdown can use this skill to automatically find the worst offending query patterns, interpret their execution plans, and get safe DDL recommendations to improve performance without risking accidental schema changes.
Quick Start
Use the query-optimization skill to diagnose why your ClickHouse database is running slow and receive safe, reviewable optimization recommendations tailored to your workload.