---
title: "Announcing Ruby Gem analytics powered by ClickHouse and Ruby Central"
description: "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)."
url: "https://swe.quest/articles/announcing-ruby-gem-analytics-powered-by-clickhouse-and-ruby-central-7ec050b11d121632"
canonical: "https://clickhouse.com/blog/announcing-ruby-gem-analytics-powered-by-clickhouse"
source: "ClickHouse"
published: "2025-04-15"
difficulty: "medium"
kind: "Case study"
reading_minutes: 18
tags: ["analytics","data-pipelines","ruby","open-source"]
---

# Announcing Ruby Gem analytics powered by ClickHouse and Ruby Central

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-04-15, 18 min read, Case study. Original: [https://clickhouse.com/blog/announcing-ruby-gem-analytics-powered-by-clickhouse](https://clickhouse.com/blog/announcing-ruby-gem-analytics-powered-by-clickhouse)

## Summary

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.

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)
- [Ruby](https://swe.quest/tags/ruby.md) (Languages)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- ClickHouse MergeTree tables ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- object storage ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))

## Keywords

ClickHouse, RubyGems, Ruby Central, S3Queue, ClickPy, GCS, ClickHouse Keeper, sql.clickhouse.com

## Related posts

- [ClickPy reaches one trillion rows](https://swe.quest/articles/clickpy-reaches-one-trillion-rows-62072046dc562ee8.md): ClickHouse · 2024-08-30 · Medium · 6 min read · Analytics & OLAP, Data pipelines, SQL, Python
  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.
- [How Kami scaled from 80M to nearly 2B events per week with ClickHouse](https://swe.quest/articles/how-kami-scaled-from-80m-to-nearly-2b-events-per-week-with-clickhouse-77ce1b06efbf532e.md): ClickHouse · 2025-05-16 · Medium · 7 min read · Analytics & OLAP, Data pipelines, PostgreSQL, Scaling, Schema migrations
  Kami's Postgres event tracking (Rails writing JSONB rows, queried via Redash) collapsed when COVID pushed weekly events from about 80M to nearly 2B.
- [How GitLab serves sub-second analytics to 50 million users](https://swe.quest/articles/how-gitlab-serves-sub-second-analytics-to-50-million-users-cabf627f25c869fd.md): ClickHouse · 2025-10-21 · Easy · 10 min read · Analytics & OLAP, PostgreSQL, Databases, Scaling
  GitLab moved its user-facing product analytics from Postgres to ClickHouse after dashboards repeatedly hit its 15-second performance ceiling.
- [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.
- [98% faster queries, 50% lower cloud costs: Verihubs’ journey from Postgres to ClickHouse](https://swe.quest/articles/98-faster-queries-50-lower-cloud-costs-verihubs-journey-from-postgres-to-f6535061aff525b1.md): ClickHouse · 2026-07-06 · Medium · 6 min read · Analytics & OLAP, Data pipelines, PostgreSQL, Event-driven architecture
  Verihubs replaced a Postgres warehouse fed by daily Airflow batch pulls with a ClickHouse-based real-time OLAP stack.

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)
