Smart Compaction: Predicting Compaction Utility from Lakehouse Table Metadata
Not on the map. Why?
Abstract (arXiv)
Open lakehouse table formats accumulate small data files over time, which degrades query performance. Deciding when compaction is worthwhile remains threshold-driven, but which metadata features actually determine compaction utility is not well understood. We present an open simulation framework that generates 2,376 Apache Iceberg tables spanning three orders of magnitude in file size, extracts 17 metadata features from manifest files without reading data, and trains XGBoost to predict the continuous file-reduction ratio (R2 = 0.998, RMSE= 0.013). The binary compaction decision turns out to be trivially separable by a single partition-level threshold max_files_per_partition> 4, requiring no learned model. Cross-schema validation on 96 TPC-H tables confirms generalisation without retraining (R2 = 0.976). A query benchmark reveals that compaction benefits metadata-heavy queries but can slow full-scan aggregations by reducing task parallelism. All code and data are publicly available.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 7 of its 29 references that are in the map. First posted on arXiv 9 Aug 2026.
Builds on
7 of 29 references.
References · 7
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,166
- 2020Bao: Learning to Steer Query Optimizerscited by 62
- 2020Qd-tree: Learning Data Layouts for Big Data Analyticscited by 18
- 2023Learning to Optimize LSM-trees: Towards A Reinforcement Learning based Key-Value Store for Dynamic Workloadscited by 6
- 2022Constructing and Analyzing the LSM Compaction Design Space (Updated Version)cited by 3
- 2023LST-Bench: Benchmarking Log-Structured Tables in the Cloudcited by 1
- 2025AutoComp: Automated Data Compaction for Log-Structured Tables in Data Lakescited by 1
Built on by
Not cited yet.