---
title: "Supercharging your large ClickHouse data loads - Part 3: Making a large data load resilient"
description: "Multi-day loads of billions to trillions of rows into ClickHouse can survive transient failures by splitting the input into retryable tasks."
url: "https://swe.quest/articles/supercharging-your-large-clickhouse-data-loads-part-3-making-a-large-data-load-9cbef13f424019e6"
canonical: "https://clickhouse.com/blog/supercharge-your-clickhouse-data-loads-part3"
source: "ClickHouse"
published: "2023-11-01"
difficulty: "medium"
kind: "How-to"
reading_minutes: 13
tags: ["analytics","data-pipelines","resilience","databases"]
---

# Supercharging your large ClickHouse data loads - Part 3: Making a large data load resilient

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-11-01, 13 min read, How-to. Original: [https://clickhouse.com/blog/supercharge-your-clickhouse-data-loads-part3](https://clickhouse.com/blog/supercharge-your-clickhouse-data-loads-part3)

## Summary

Multi-day loads of billions to trillions of rows into ClickHouse can survive transient failures by splitting the input into retryable tasks. ClickPipes covers managed ingestion from Kafka. For other sources, the open ClickLoad script loads Parquet files from object storage. Stateless workers claim file-chunk tasks from a KeeperMap-backed table and insert each chunk into a per-worker staging table via INSERT INTO SELECT. On failure they truncate and retry; on success they move partitions to the target table, giving exactly-once storage without costly mutations or deduplication. The design scales roughly linearly with workers and servers (3→6 servers doubled throughput from 4M to 8M rows/s on a 600B-row load), works with any partition key, and also covers projections and materialized views through cloned staging tables.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- ClickHouse MergeTree parts and partitions ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- object storage (S3/GCS) ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))
- materialized views

## Keywords

ClickHouse, ClickLoad, ClickPipes, KeeperMap, Parquet, ClickHouse Cloud, Apache Kafka

## Related posts

- [Ensuring reliable OpenTelemetry ingestion at scale](https://swe.quest/articles/ensuring-reliable-opentelemetry-ingestion-at-scale-ef5f46f7e6587da0.md): ClickHouse · 2026-08-24 · Medium · 12 min read · Observability, Resilience, Data pipelines, Cloud platforms, Kubernetes
  ClickHouse's LogHouse OpenTelemetry pipeline, ingesting 50 million events per second, absorbs database backpressure by failing over to S3 rather than buffering in memory, local WALs or Kafka.
- [ClickHouse Newsletter October 2022: A cloud has arrived](https://swe.quest/articles/clickhouse-newsletter-october-2022-a-cloud-has-arrived-ea3242fdda480e88.md): ClickHouse · 2022-10-13 · Medium · 6 min read · Analytics & OLAP, Performance engineering, Cloud platforms, Vector search
  ClickHouse Cloud entered public beta, storing data on shared object storage reachable by all nodes, so users no longer configure replication, sharding or rebalancing, and storage costs less than on block storage.
- [How we built our Internal Data Warehouse at ClickHouse: A year later](https://swe.quest/articles/how-we-built-our-internal-data-warehouse-at-clickhouse-a-year-later-38e2018d0874b279.md): ClickHouse · 2024-09-10 · Medium · 9 min read · Analytics & OLAP, Data pipelines, Cost optimization
  ClickHouse's internal data warehouse on ClickHouse Cloud now ingests about 6 billion rows (50 TB uncompressed) a day from nineteen sources and holds 470 TB compressed.
- [Supercharging your large ClickHouse data loads - Part 1: Performance and resource usage factors](https://swe.quest/articles/supercharging-your-large-clickhouse-data-loads-part-1-performance-and-resource-9144b512c7e0ece3.md): ClickHouse · 2023-09-19 · Medium · 10 min read · Analytics & OLAP, Performance engineering, Storage engines, Data pipelines
  ClickHouse ingest performance and resource usage for large loads into MergeTree tables are governed by three factors: insert block size, insert parallelism, and hardware size.
- [How we built the Internal Data Warehouse at ClickHouse](https://swe.quest/articles/how-we-built-the-internal-data-warehouse-at-clickhouse-d3d7520881242252.md): ClickHouse · 2023-07-19 · Medium · 16 min read · Analytics & OLAP, Data pipelines, System design, Identity & auth, Scheduling
  ClickHouse's internal data warehouse ingests tens of sources (Control Plane, Data Plane, AWS CUR, GCP billing, Salesforce, M3ter and others) into S3 hourly, then loads them into ClickHouse Cloud with the s3 table function and transforms them in SQL.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
