Skip to content

How to Optimize a ClickHouse Query using Projections

Rich Raposa

Director, Global Learning, ClickHouse Projections are a query-optimization feature of MergeTree tables in ClickHouse that store data in a different format than the defined sort order. Useful use cases include the ability to sort the data in a different order than the primary key, and also to pre-aggregate columns. One nice benefit of projections over materialized views is that a projection does not require a separate table, so users simply query the original table and ClickHouse decides at query time if a projection can improve the performance.

Recent videos

YouTube Video: IyI0YQBCy8U

How to

CDC ClickPipes: The Fastest Way to Replicate Your Database to ClickHouse

Marta Paes, Senior Product Manager at ClickHouse

YouTube Video: Mgsm11T7tO8

How to

Under-the-Hood: ClickHouse Incremental Materialized Views and Dictionaries

Maruthi Lokanathan, Solution Architect at ClickHouse Derek Chia, Principal TAM Architect at ClickHouse

YouTube Video: -piPcapMtc0

ClickHouse Cloud, How to

LogHouse, Observability for ClickHouse Cloud

Get an insider’s look at LogHouse, the ClickHouse-powered logging platform that drives observability for ClickHouse Cloud.

Follow us

XBlueskySlackGithubTelegramMeetupRSS