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


![Viva Engage: Update storyline cover photos in Teams for iOS. [MC1191346] 3 pexels enginakyurt 3219549](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-enginakyurt-3219549-150x150.webp)
![Microsoft Teams: Network Device Interface (NDI) bandwidth increase [MC1191341] 4 pexels pachon in motion 426015731 26559443](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-pachon-in-motion-426015731-26559443-150x150.webp)
![(Updated) Microsoft Copilot Chat: AI disclaimer updates [MC1181766] 5 train 4734116 1920](https://mwpro.co.uk/wp-content/uploads/2025/06/train-4734116_1920-150x150.webp)
