How Primary Keys Work in ClickHouse

Rich Raposa
Director, Global Learning, ClickHouse Primary keys in ClickHouse are not what you're used to in other DBMSs. Picking a good primary key for your MergeTree tables is critical in optimizing query performance, so it's important to understand how they work. We include an explanation of the primary index and granules.
Related videos
View all Videos
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.

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.
