Ch Query

Query ClickHouse without getting an inflated number or melting a production node: deduplication on ReplacingMergeTree, partition pruning with PREWHERE, column pruning, join order, and how to explore an unfamiliar schema first. Use when asked to "count this from the data", "how many orders/sales/events", "pull that out of ClickHouse", "write a query", "what tables are there", "check this hypothesis against the data", "why is this query hanging", "optimise this query", and before any analysis that starts with "how many do we have". Not for designing tables and migrations, not for A/B test analysis.

ViderStar Updated

File contents

ViderStar/clickhouse-kit/tree/main/skills/ch-query commit 88595e6eb3

Frequently asked questions

npx skillmds@latest add viderstar/ch-query