Skip to content

Conversation

@Username46786
Copy link
Contributor

This PR adds a new Knowledge Base article that demonstrates a common
ClickHouse design pattern: creating a rollup with Materialized Views
for fast time-series analytics.

The tutorial walks through:

  • Raw events table (MergeTree) with partitioning, ORDER BY, TTL.
  • Rollup table (AggregatingMergeTree) storing aggregate states.
  • Materialized View to maintain rollups automatically.
  • Queries using Merge vs FINAL, with EXPLAIN examples.
  • Variations (daily rollups, codecs, TTL, backfilling).

Why:

  • Rollups with MVs are one of the most frequently requested patterns
    by ClickHouse users.
  • Provides an end-to-end, production-ready example that reduces the
    learning curve.
  • Helps standardize a best-practice approach, reducing common Q&A
    traffic around time-series aggregation.

@Username46786 Username46786 requested a review from a team as a code owner September 20, 2025 01:48
@vercel
Copy link

vercel bot commented Sep 20, 2025

@Username46786 is attempting to deploy a commit to the ClickHouse Team on Vercel.

A member of the Team first needs to authorize it.

@Blargian Blargian self-assigned this Sep 22, 2025
@vercel
Copy link

vercel bot commented Sep 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
clickhouse-docs Ready Ready Preview Sep 22, 2025 3:35pm
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
clickhouse-docs-ru Ignored Ignored Preview Sep 22, 2025 3:35pm
clickhouse-docs-zh Ignored Ignored Preview Sep 22, 2025 3:35pm

@Blargian
Copy link
Member

@Username46786 Thank you so much for this great contribution! I made a few minimal changes to formatting.

@Blargian Blargian merged commit d596fa9 into ClickHouse:main Sep 22, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants