ClickHouse Schema Advisor can test a new sort key even when it can’t deploy it
The private preview replays frequent queries against a 10-million-row sample, but blocks full rebuilds for continuously ingested tables, large tables and tables with downstream dependencies.
ClickHouse Cloud put Schema Advisor into private preview on Dec. 1. It can show whether a different sort order makes a table’s frequent queries faster before anyone changes the production table. But a successful replay doesn’t mean the preview can deploy that change: ClickHouse’s documentation rules out full rebuilds on tables with continuous ingestion, downstream dependencies such as materialized views, more than 100 million rows, or more than 100 GB of data.
What the replay actually measures
The documented test takes a 10-million-row sample as its baseline, builds a candidate table from that sample, and replays the production table’s most frequent queries three times against both. The report compares query time, rows scanned and data read, averaged across those queries. You can run the test in the current service or in a temporary isolated service restored from the latest backup; the latter requires backups to be configured.
For example, suppose a team wants to reorder an events table because its usual dashboards scan too much data. The replay can tell the team whether those frequent queries scanned less data on the sampled candidate. It does not, by itself, tell them how an infrequent month-end query will behave, or clear the table for a rebuild if it takes a continuous stream of events. The test is recommended, not required: the preview lets operators skip straight to deployment.
Who writes the plan, and who runs it
ClickHouse says the recommendations in the Tables monitoring view come from deterministic tests on query logs. The model helps plan the change; a workflow executes the SQL after the operator approves each step. The docs distinguish those monitoring recommendations from additional suggestions users can request in ClickHouse Assistant, where ClickHouse specifically recommends testing model-generated recommendations before deploying them.
A primary-key or sort-order change requires a rebuild. Where supported, the workflow copies and checks the data, then swaps the tables after approval; the old table stays until the operator requests cleanup. Adding an index or projection takes a different route: the workflow applies an approved ALTER TABLE in place, without the rebuild restrictions. The preview is request-access only, excludes Bring Your Own Cloud and ClickHouse Private, and is outside the standard ClickHouse Cloud SLA.
sources
- ClickHouse engineering launch postclickhouse.com
- ClickHouse Cloud Schema Advisor documentationclickhouse.com
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026