What problem does it solve? Designing efficient ClickHouse schemas and writing performant analytical queries requires deep knowledge of columnar storage, MergeTree engines, and aggregation functions that most developers lack, leading to slow queries and poorly structured tables. ## Core Features & Use Cases - Table Design Patterns: Provides templates for MergeTree, ReplacingMergeTree, and AggregatingMergeTree engines with proper partitioning and ordering keys. - Query Optimization: Demonstrates efficient filtering, aggregation with quantile functions, window functions, and materialized views for real-time rollups. - Data Pipeline Patterns: Covers bulk inserts, streaming ingestion, ETL workflows, and change data capture from PostgreSQL. - Use Case: A data engineer building a market analytics platform can use these patterns to create hourly aggregated statistics tables, run retention and funnel analyses, and monitor slow queries via system.query_log. ## Quick Start Ask the AI to design a ClickHouse table with proper partitioning and write an optimized aggregation query for your time-series analytics data.