Clickhouse Parts Triage

Fix ClickHouse too-many-parts errors and merge backlogs by reading system.parts, system.merges and system.part_log before changing anything, then removing the cause in order of frequency: many tiny inserts (batch to tens of thousands to a million rows at about one insert per second per table, or async_insert with wait_for_async_insert so acknowledgements stay honest), a PARTITION BY that is too granular (many partitions touched per insert), and queued mutations on large tables. Raising parts_to_throw_insert only delays failure. Use for "Too many parts. Merges are processing significantly slower than inserts", "inserts rejected", "ClickHouse merges backlog" or "how should I batch inserts". Not for which queries drive scan cost (scan-cost-forensics), query speed (sql-performance), relational partitions (table-partitioning) or backfills (safe-backfill).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 4799a4f362

Frequently asked questions

npx get-skill add greenblacked/clickhouse-parts-triage