Back to skills

clickhouse-best-practices

data

A set of 28 validated rules for ClickHouse covering schema design, query optimization, and data ingestion. Rules are grouped by category and priority, from primary key selection to mutation avoidance.

Setup & Installation

npx skills add https://github.com/clickhouse/clickhouse-best-practices --skill clickhouse-best-practices
or paste the link and ask your coding assistant to install it
https://github.com/clickhouse/clickhouse-best-practices
View on GitHub

What This Skill Does

A set of 28 validated rules for ClickHouse covering schema design, query optimization, and data ingestion. Rules are grouped by category and priority, from primary key selection to mutation avoidance. Meant to be checked against before answering ClickHouse questions or reviewing database code. ClickHouse has specific behaviors around columnar storage and sparse indexes where standard SQL intuition leads to bad designs, and these rules encode validated ClickHouse-specific guidance that general database knowledge won't cover.

When to use it

  • Working with clickhouse best practices functionality
  • Implementing clickhouse best practices features
  • Debugging clickhouse best practices related issues