Skip to content

Projections in ClickHouse

YouTube Video: 6CdnUdZSEG0

Mark Needham

Discover how to dramatically improve query performance in ClickHouse using projections - a powerful feature that creates query-optimized copies of your data.

This video demonstrates projections using a real-world example with 30 million UK property price records. Watch as we reduce query time from 53 milliseconds to just 4 milliseconds by creating a projection for calculating average house prices by county.

What You'll Learn:

  • What projections are and how they work as hidden tables that update atomically
  • Three main use cases: reordered datasets, subset of columns filtering, and pre-computed aggregations
  • Step-by-step process to create and materialize projections
  • How to verify projections are being used with EXPLAIN queries
  • Understanding the storage trade-offs and space requirements

Recent videos

YouTube Video: e-NnqMTY_3A

How to

Inspect incoming data with INSERT … RETURNING in ClickHouse

Use INSERT … RETURNING in ClickHouse 26.11 to inspect generated values, sample incoming rows, find invalid ratings, and summarise an ingestion batch.

YouTube Video: BsmTK-pa5ks

How to

Reading and writing Vortex files with ClickHouse (26.11)

Query and export Vortex files with ClickHouse 26.11, using a FineWeb dataset containing just over a million web pages.

Follow us

XBlueskySlackGithubTelegramMeetupRSS