ClickPy reaches one trillion rows
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.
Related posts
- ClickPy at 2 Trillion rows: Scaling ingestion and fixing the past
ClickHouse mediumAdept
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. The new pipeline loaded data into a staging database with cloned schemas, a Null-engine raw table and a materialized view that holds all transformation logic. A fresh GCS bucket avoided reprocessing history, and the new pipeline ran in parallel and was validated by comparing daily row counts before cutover. That validation exposed missing historical days, which were fixed with lightweight deletes and per-day re-ingestion. Daily-aggregated materialized views could be deleted and repopulated by date, while non-daily aggregates such as monthly totals had to be dropped, rebuilt and recreated to avoid double counting.
- Announcing Ruby Gem analytics powered by ClickHouse and Ruby Central
ClickHouse mediumAdept
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). Hourly gzip NDJSON logs land in GCS: historical data was backfilled with tuned INSERT INTO SELECT over s3Cluster (about 10B rows per year in ~20 minutes), and new files stream in through the S3Queue engine feeding a materialized view. Because parallel Lambda exports per Fastly region arrive out of order, the queue runs in unordered mode, with a new queue created daily and old ones dropped to keep Keeper's file tracking small. 160 TB of raw JSON compresses to under 5 TB in ClickHouse.
- Better Analytics at Scale with Trackingplan and ClickHouse
ClickHouse mediumAdept
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. After evaluating Snowflake, BigQuery, Redshift and Athena, the team found ClickHouse 20x faster than Athena and cheaper than the pay-per-scan options for a continuous query workload. Materialized views, backfilled via INSERT INTO SELECT, precompute the common dashboard statistics. Customer-ID ordering keys handle multi-tenancy and ad hoc queries across about 30 billion rows growing 400% per year, and Map/Array types hold dynamic properties.
- How Lyft powers batch and real-time analytics with ClickHouse Cloud
ClickHouse mediumAdept
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. Batch jobs are defined in TOML files that specify a Trino aggregation and the target table layout, read from S3 via the s3 table function into a staging table, and swap partitions. Real-time pipelines use Flink to deserialize Kafka and Kinesis events, resolving nested protobuf messages at runtime with Java reflection so ClickHouse schemas no longer need manual syncing. Migration friction included unavailable features such as the Join engine (replaced by dictionaries) and the Kafka table engine, plus batch-size and data-freshness tuning.
- How Jump Trading uses ClickHouse with Iceberg for analytics
ClickHouse mediumAdept
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. Raw logs flow through Redpanda to sharded bare-metal ingestors, distributed tables shard the fact tables, and replicated tables hold reference data. To serve heavy batch and HPC readers without loading the real-time cluster, Jump added a Netflix-style double-write pipeline: Kafka feeds parallel consumers writing to ClickHouse and to Iceberg Parquet on object storage. ClickHouse queries both, keeping the same access control and observability, and a 20-node Iceberg setup scanned 376 billion rows in 9.6 seconds.