Our billing pipeline was suddenly slow. The culprit was a hidden bottleneck in ClickHouse
**TL;DR:** Our billing pipeline was suddenly slow. The culprit was a hidden bottleneck in ClickHouse
---
What we know
At Cloudflare, we are heavy users of ClickHouse, an open source online analytical processing (OLAP) database. Every day, we make millions of calls to ClickHouse to determine how much users should be billed for their usage of Cloudflare products. If we don't finish those jobs in a timely fashion, the invoices become very difficult to reconcile. This pipeline powers hundreds of millions of dollars in usage revenue, fraud systems, and more, so being delayed has major downstream implications.
Which is why it was a big problem when the daily aggregation jobs in ClickHouse – responsible for ensuring Cloudflare’s bills go out – had slowed way down, following a migration. All the usual suspects looked clean: I/O, memory, rows scanned, parts read. Everything we would normally check when a ClickHouse query is slow appeared to be normal. This is the story of how we discovered a hidden bottleneck buried deep within ClickHouse’s internals, and the three patches we wrote to fix it.
The setup: a petabyte-scale analytics platform We use ClickHouse to store over a hundred petabytes of data across a few dozen clusters. To simplify onboarding for our many internal teams, we built a system called "Rea
Source: Cloudflare Blog
Context
Tech news is rarely just a gadget headline. We frame what changed, who benefits, and what to watch next as details firm up.
Why this matters
Readers should treat early numbers and unnamed claims cautiously. The durable story is usually confirmed in docs, filings, or follow-up reporting.
What to watch next
Follow whether independent researchers or regulators validate the claims — that is often when the real scope becomes clear.
Practical takeaways
1) Treat unconfirmed claims as provisional. 2) Check official statements before changing security or spending decisions. 3) Save links and dates so you can verify updates later.
FAQ
**Q: Is everything in this article confirmed?** A: The summary reflects publicly reported information at publication time. Analysis sections are clearly framed as context, not new reporting.
**Q: Will iByte update this page?** A: Yes. As primary sources publish more detail, this article can be refreshed without changing the URL.
Last updated: June 16, 2026.
Additional context: early-cycle stories often look bigger in headlines than in day-to-day impact. The useful move is to identify the smallest set of facts that would change your decision, then wait for those facts to land.
Additional context: early-cycle stories often look bigger in headlines than in day-to-day impact. The useful move is to identify the smallest set of facts that would change your decision, then wait for those facts to land.
