---
title: "OONI Powers its Measurement of Internet Censorship with ClickHouse"
description: "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."
url: "https://swe.quest/articles/ooni-powers-its-measurement-of-internet-censorship-with-clickhouse-6ee2ad4e0a344636"
canonical: "https://clickhouse.com/blog/ooni-analyzes-internet-censorship-data-with-clickhouse"
source: "ClickHouse"
published: "2023-05-19"
difficulty: "medium"
kind: "Case study"
reading_minutes: 4
tags: ["analytics","databases","postgres","performance"]
---

# OONI Powers its Measurement of Internet Censorship with ClickHouse

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-05-19, 4 min read, Case study. Original: [https://clickhouse.com/blog/ooni-analyzes-internet-censorship-data-with-clickhouse](https://clickhouse.com/blog/ooni-analyzes-internet-censorship-data-with-clickhouse)

## Summary

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.

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)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- SQL aggregation queries ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- OLTP vs OLAP databases ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

ClickHouse, OONI, PostgreSQL, ReplacingMergeTree, OONI Explorer, MongoDB, Amazon S3

## Related posts

- [DENIC Improves Query Times By 10x with ClickHouse](https://swe.quest/articles/denic-improves-query-times-by-10x-with-clickhouse-060ef54871f5e907.md): ClickHouse · 2022-05-10 · Medium · 9 min read · Analytics & OLAP, Query engines, SQL, Performance engineering, Databases
  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.
- [How Exabeam uses ClickHouse for scalable, searchable security analytics](https://swe.quest/articles/how-exabeam-uses-clickhouse-for-scalable-searchable-security-analytics-9b3f4c0a732d0875.md): ClickHouse · 2025-09-11 · Medium · 6 min read · Analytics & OLAP, Performance engineering, Threat detection, Data pipelines, Scaling
  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.
- [Ongage's Strategic Shift to ClickHouse for Real-time Email Marketing](https://swe.quest/articles/ongage-s-strategic-shift-to-clickhouse-for-real-time-email-marketing-dfca8e1a38de318e.md): ClickHouse · 2023-08-24 · Easy · 7 min read · Analytics & OLAP, MySQL, Databases, Cloud platforms
  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.
- [How SolarWinds uses ClickHouse BYOC for real-time observability at scale](https://swe.quest/articles/how-solarwinds-uses-clickhouse-byoc-for-real-time-observability-at-scale-39448c307e0eeb75.md): ClickHouse · 2025-03-11 · Medium · 5 min read · Analytics & OLAP, Performance engineering, Observability, Cloud platforms
  SolarWinds ingests about 3 million telemetry messages per second, roughly 550 MB/s with 1 GB bursts, into ClickHouse ReplacingMergeTree tables.
- [How BENOCS uses ClickHouse to monitor network traffic for the world’s biggest telcos](https://swe.quest/articles/how-benocs-uses-clickhouse-to-monitor-network-traffic-for-the-world-s-biggest-2c1a0883825ce194.md): ClickHouse · 2022-03-22 · Easy · 4 min read · Analytics & OLAP, Data pipelines, Networking
  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.

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)
