logo

Announcing support for GROUP BY, SUM, and other aggregation queries in R2 SQL

ID: db5f3e8a-1e4b-50db-bf92-86e30401206e

STIX ID: report--db5f3e8a-1e4b-50db-bf92-86e30401206e

Feed Name: Cloudflare Blog

Date Published: 2025-12-18

Date Updated: 2026-04-27

Author: Jérôme Schneider

...
...

Cloudflare announces support for aggregations in R2 SQL, detailing how scatter-gather and shuffle-based distributed execution enable efficient GROUP BY queries with HAVING, ORDER BY, and LIMIT on massive datasets stored in R2 Data Catalog. By hashing and colocating group keys, enforcing a synchronization barrier, and performing a coordinator k-way merge of pre-sorted results, R2 SQL scales analytics workloads for reporting, anomaly detection, and trend analysis without overloading a single node.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.