Analytics buckets
Store large datasets for analytics and reporting.
Knowing what analytics buckets are for tells you when to move analytical workloads off your Postgres tables. For how to create one, see Create an analytics bucket.
Analytics buckets vs Postgres tables
Analytics buckets store large datasets in Apache Iceberg, an open table format, so you can run analytical workflows on them while keeping your primary database optimized for transactional operations.
This feature is in alpha
Expect rapid changes, limited features, and possible breaking updates. Share feedback as we refine the experience and expand access.
Postgres tables are purpose-built for transactional workloads with frequent inserts, updates, deletes, and low-latency queries. Analytical workloads have different requirements:
- Processing large volumes of historical data
- Running complex queries and aggregations
- Minimizing storage costs
- Preventing analytical queries from slowing production traffic
Analytics buckets address these requirements using Iceberg, which is designed for efficient management of large analytical datasets.
Services
Analytics buckets work through two services:
| Service | What it does |
|---|---|
| Iceberg REST Catalog | Manages the metadata for your Iceberg tables: tables and namespaces, schemas and schema evolution, partitions and snapshots, and transactional consistency and isolation. It stores only metadata, not your data. |
| S3-compatible storage endpoint | Stores and retrieves the data itself, in Parquet format, and is optimized for reading and writing large analytical datasets. |
Iceberg clients such as PyIceberg and Apache Spark use the REST Catalog to work with your tables. For how to connect one, see Iceberg Catalog.
Limits
During the alpha, limits apply to the number of buckets, namespaces, and tables. For the full list, see Analytics buckets limits.
Replication into analytics buckets through Supabase Pipelines is no longer supported. To populate an analytics bucket, bring your own ingestion pipeline.
When to use analytics buckets
Analytics buckets suit the following use cases:
- Data warehousing and business intelligence: Build scalable data warehouses for BI tools
- Historical data archiving: Retain large volumes of historical data cost-effectively
- Periodically refreshed analytics: Maintain near real-time analytical views
- Complex analytical queries: Run aggregations and joins over large datasets
Related resources
- Create an analytics bucket: create your first analytics bucket.
- Iceberg Catalog: connect a query engine to an analytics bucket.
- Analytics buckets limits: the limits that apply during the alpha.