Skip to Content

How to Optimize a ClickHouse Query using Projections

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. Reference links: ClickHouse Quick Start Documentation: https://clickhouse.com/docs/en/getting-started/quick-start ClickHouse Academy: https://clickhouse.com/learn Official ClickHouse Certification: https://clickhouse.com/learn/certification Don't forget to give us a ⭐ on Github! https://github.com/clickhouse/clickhouse
Rating
0 0

There are no comments for now.

to be the first to leave a comment.