You can now enable automatic compaction for Apache Iceberg tables in R2 Data Catalog to improve query performance.
Compaction is the process of taking a group of small files and combining them into fewer larger files. This is an important maintenance operation as it helps ensure that query performance remains consistent by reducing the number of files that needs to be scanned.
To enable automatic compaction in R2 Data Catalog, find it under R2 Data Catalog in your R2 bucket settings in the dashboard.
Or with Wrangler, run:
npx wrangler r2 bucket catalog compaction enable <BUCKET_NAME> --target-size 128 --token <API_TOKEN>To get started with compaction, check out manage catalogs. For best practices and limitations, refer to about compaction.
Source: Cloudflare


![Dynamics 365 Customer Service – Simulate AI field prediction capability from Case Management Agent [MC1204658] 3 pexels pixabay 36464](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-pixabay-36464-150x150.webp)
![Microsoft 365 Copilot for Service – Create case records from customer emails with one click [MC1204498] 4 swimming 1199678 1920](https://mwpro.co.uk/wp-content/uploads/2025/06/swimming-1199678_1920-150x150.webp)

