clickhouse-io

Optimize ClickHouse analytical workloads with MergeTree and materialized view patterns.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/feldboy/parlament-app --skill clickhouse-io-feldboy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: clickhouse-io
Source: https://github.com/feldboy/parlament-app/tree/main/.claude/skills/clickhouse-io
Command: npx skills add https://github.com/feldboy/parlament-app --skill clickhouse-io-feldboy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive set of ClickHouse data modeling and analytics patterns to design high-performance OLAP pipelines, enabling scalable, fast queries over large datasets.

Core Features & Use Cases

  • MergeTree patterns: guidance on partitioning, ordering, and settings to optimize storage and query performance.
  • ReplacingMergeTree & AggregatingMergeTree: strategies for deduplication and pre-aggregation to maintain data quality and fast analytics.
  • Query optimization patterns: practical approaches for efficient filtering, aggregations, and windowing in ClickHouse.
  • Data insertion & ingestion: recommended bulk and streaming patterns to sustain high ingestion throughput.
  • Materialized views & real-time analytics: patterns to generate real-time aggregates and simplified downstream queries.
  • Performance monitoring: best practices for monitoring query latency, resource usage, and table health.
  • Analytics queries & pipelines: common time-series and cohort patterns to drive insight from event data.

Quick Start

Configure a sample analytics project using MergeTree-based tables and materialized views to optimize query performance.

Frequently Asked Questions about clickhouse-io

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize ClickHouse materialized views for real-time analytics?▼

Use AggregatingMergeTree with materialized views to pre-calculate real-time aggregates and simplify downstream queries. This pattern maintains fast analytics performance over large datasets by avoiding repeated raw data scans.

When should I use ReplacingMergeTree vs MergeTree in ClickHouse?▼

Use ReplacingMergeTree for deduplication to maintain data quality, and standard MergeTree for general large-scale analytics. Proper partitioning and ordering strategies optimize storage and query performance for both table engines.

What is the best way to design high-throughput data ingestion pipelines in ClickHouse?▼

Design high-throughput ClickHouse ingestion by using recommended bulk and streaming insertion patterns. Sustaining high ingestion throughput requires structuring efficient data models and applying proper table schemas for large-scale pipelines.

Why is my ClickHouse query slow and how can I improve filtering and aggregations?▼

Improve slow ClickHouse query performance by applying query optimization patterns for efficient filtering, aggregations, and windowing. Monitoring resource usage and table health helps identify latency bottlenecks in analytical workloads.

Can I run time-series and cohort analytics queries efficiently in ClickHouse?▼

Yes, you can run time-series and cohort analytics queries efficiently in ClickHouse by applying specific query patterns. These patterns drive insights from event data while leveraging MergeTree indexing for fast analytical processing.