ClickHouse Query Optimizer
Optimizes ClickHouse SQL queries for maximum performance, reduced memory usage, and efficient index utilization.
This skill provides a comprehensive suite of over 20 optimization rules specifically for ClickHouse, designed to achieve 10-100x faster execution and up to 90% less memory consumption. It guides developers through critical performance patterns such as leveraging ORDER BY prefixes, implementing PREWHERE for selective filtering, and replacing resource-heavy JOINs with high-performance Dictionaries. Whether you are debugging slow queries via EXPLAIN or resolving memory limit errors, this skill ensures your analytical workloads run with minimal I/O and maximum efficiency by eliminating full table scans and optimizing execution pipelines.