---
title: "ClickPy reaches one trillion rows"
description: "ClickPy, a free open-source real-time analytics service for PyPI download statistics built on ClickHouse, has passed one trillion rows in its main downloads table."
url: "https://swe.quest/articles/clickpy-reaches-one-trillion-rows-62072046dc562ee8"
canonical: "https://clickhouse.com/blog/clickpy-one-trillion-rows"
source: "ClickHouse"
published: "2024-08-30"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["analytics","data-pipelines","sql","python"]
---

# ClickPy reaches one trillion rows

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2024-08-30, 6 min read, Case study. Original: [https://clickhouse.com/blog/clickpy-one-trillion-rows](https://clickhouse.com/blog/clickpy-one-trillion-rows)

## Summary

ClickPy, a free open-source real-time analytics service for PyPI download statistics built on ClickHouse, has passed one trillion rows in its main downloads table. The data is exported from BigQuery to Parquet files in Google Cloud Storage, bulk-loaded via the s3 table function and kept current by an hourly cron-plus-worker pipeline (ClickLoad). Materialized views maintain pre-aggregated downstream tables for common query patterns, and dictionaries handle reference data. Public read-only access is limited to 10 billion rows read per query, so the aggregated tables, not the raw pypi table, are the practical way to query it.

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)
- [SQL](https://swe.quest/tags/sql.md) (Languages)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

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

## Keywords

ClickPy, ClickHouse, PyPI, BigQuery, Parquet, ClickLoad, materialized views

## Related posts

- [ClickPy at 2 Trillion rows: Scaling ingestion and fixing the past](https://swe.quest/articles/clickpy-at-2-trillion-rows-scaling-ingestion-and-fixing-the-past-d834572321743679.md): ClickHouse · 2026-01-21 · Medium · 7 min read · Data pipelines, Analytics & OLAP, Schema migrations
  ClickPy, ClickHouse's free PyPI download analytics service, now holds over 2.2 trillion rows, and its cron-based ingestion script was replaced with ClickPipes without downtime.
- [Announcing Ruby Gem analytics powered by ClickHouse and Ruby Central](https://swe.quest/articles/announcing-ruby-gem-analytics-powered-by-clickhouse-and-ruby-central-7ec050b11d121632.md): ClickHouse · 2025-04-15 · Medium · 18 min read · Analytics & OLAP, Data pipelines, Ruby, Open source
  ClickHouse and Ruby Central now offer free RubyGems download analytics via sql.clickhouse.com, covering over 180 billion download rows since 2017 plus daily aggregates and weekly metadata dumps (dependencies, versions, attestations).
- [Better Analytics at Scale with Trackingplan and ClickHouse](https://swe.quest/articles/better-analytics-at-scale-with-trackingplan-and-clickhouse-fe79c2efef76743f.md): ClickHouse · 2024-01-24 · Medium · 6 min read · Analytics & OLAP, Databases, Multi-tenancy, Cloud platforms
  Trackingplan, which tests web, mobile and backend analytics by sampling events sent to tools like Google Analytics and Segment, moved from DynamoDB with PySpark-precomputed statistics to ClickHouse Cloud so it could answer unforeseen ad hoc queries on raw data.
- [How Lyft powers batch and real-time analytics with ClickHouse Cloud](https://swe.quest/articles/how-lyft-powers-batch-and-real-time-analytics-with-clickhouse-cloud-f74360c81abeeaab.md): ClickHouse · 2025-09-10 · Medium · 6 min read · Analytics & OLAP, Data pipelines, Stream processing, Databases
  Lyft replaced Apache Druid with ClickHouse, first self-managed and then on ClickHouse Cloud, for analytics that read over 450 TB and write about 4 TB per day at hundreds to thousands of queries per second.
- [How Jump Trading uses ClickHouse with Iceberg for analytics](https://swe.quest/articles/how-jump-trading-uses-clickhouse-with-iceberg-for-analytics-1cafb9464ead1735.md): ClickHouse · 2026-07-30 · Medium · 6 min read · Analytics & OLAP, Data pipelines, Distributed databases, Performance engineering
  Jump Trading runs a self-managed, on-prem ClickHouse cluster of tens of nodes as the system of record for petabyte-scale trading logs, ingesting hundreds of TB per day with peaks of 10M rows/sec and a sub-20-second p99, reconciled daily for zero data loss.

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)
