OONI Powers its Measurement of Internet Censorship with ClickHouse
OONI, a non-profit that measures internet censorship through volunteer-run probes, replaced flat files, MongoDB and PostgreSQL with ClickHouse to store measurement metadata in a single 1.4-billion-row ReplacingMergeTree table, while raw JSON stays on S3. Aggregation queries behind the Measurement Aggregation Toolkit, which use countIf grouped by user-chosen dimensions, now run directly on the dataset. This removed the pre-computed counter tables PostgreSQL required. Heavy queries dropped from up to 20 minutes to hundreds of milliseconds, a sample query scanned 59M rows in 600 ms, and on-disk size halved.
Related posts
- DENIC Improves Query Times By 10x with ClickHouse
ClickHouse mediumAdept
DENIC, the .de registry, built its data science platform on ClickHouse after rejecting Hadoop and Spark as too costly to administer and cloud services for privacy reasons. A denormalized ReplicatedMergeTree table stores more than 20 million per-domain time series, with holder data held in arrays. A daily query that finds the current state of domains whose holders changed took 5 minutes. Switching to a ReplicatedReplacingMergeTree table cut that to 3 minutes. An AggregatingMergeTree materialized view with argMax was dropped because it exhausted 128 GB of RAM. Rewriting the query to filter whole time series in the GLOBAL IN subquery, using LIMIT 1 BY instead of max(timestamp), and using ARRAY JOIN with IN instead of hasAny brought it to about 30 seconds, and that held at hundreds of millions of rows.
- How Exabeam uses ClickHouse for scalable, searchable security analytics
ClickHouse mediumAdept
Exabeam runs its security analytics platform on ClickHouse Cloud across 10 regions, ingesting up to 1.2M events/sec per region (80B+ daily, 3.5 PB raw compressed to 200 TiB), with compute-compute separation that isolates write, merge and read nodes. Key optimizations: consolidating commonly queried fields into one wide column cut query latency from 8s to under 1s, folding sparse fields into a key-value column shrank the schema from 1,150 to 250 columns and raised throughput from 100K to 250K events/sec on three nodes, and ingestor tuning (Jackson over Gson, larger Gzip buffers, better serialization) cut memory 45%. Splitting backdated events into a separate backlog pipeline reduced part-file explosion and aborted merges, and replacing N-gram indexes with token-based indexes lowered hardware cost since regex queries were under 1% of workload.
- Ongage's Strategic Shift to ClickHouse for Real-time Email Marketing
ClickHouse easyNovice
Ongage, an email and SMS marketing automation company processing about half a billion messages a day, moved its campaign analytics and automation reporting from a large AWS RDS MySQL cluster (alongside MongoDB and Redshift) to ClickHouse Cloud. The pipeline loads raw events from S3 with the s3Cluster function and copies around eight MySQL tables in via the MySQL table engine, swapping them in with EXCHANGE. A materialized view enriches inserted events with joins and writes them to a SummingMergeTree table that serves queries. Reports that took two to three hours on MySQL now return almost instantly. ClickHouse was chosen over SingleStore on storage cost (SingleStore was 6x more expensive) and materialized view support, and the managed cloud offering won on operational burden and support.
- How SolarWinds uses ClickHouse BYOC for real-time observability at scale
ClickHouse mediumAdept
SolarWinds ingests about 3 million telemetry messages per second, roughly 550 MB/s with 1 GB bursts, into ClickHouse ReplacingMergeTree tables. Its hottest data, the most recent 60 minutes, suffered when merges lagged behind ingestion. Reducing index granularity, verified by A/B testing a mirrored table through an internal query router, cut five-minute-window query latency from 76 ms to 28 ms. The tradeoffs were primary-key index memory growing from 10 GB to as much as 320 GB and merge times rising nearly 50%. Switching file reads from pread_threadpool to pread on fast SSDs added further gains, and the team moved to ClickHouse BYOC on AWS for S3-backed storage, compute-compute separation and lower operational overhead.
- How BENOCS uses ClickHouse to monitor network traffic for the world’s biggest telcos
ClickHouse easyNovice
BENOCS builds its Flow Analytics network-traffic monitoring for large telcos on ClickHouse, processing dozens of terabytes of asynchronous feeds per day through a self-healing push pipeline that computes results as each feed's data arrives and backfills when late data shows up. Time is the primary key of the MergeTree tables, so DISTINCT queries on it can check data availability across terabytes in seconds, and processing a time range costs the same regardless of table size. ASOF joins handle fuzzy matching between feeds with very different time resolutions by joining on the nearest timestamp instead of an exact one.