Scaling Package Queries to a Billion Tuples via Hierarchical Partitioning and Customized Optimization
Anh L. Mai, Pengyu Wang, Azza Abouzied, Matteo Brucato, Peter J. Haas, Alexandra Meliou
摘要
A package query returns a package---a multiset of tuples---that maximizes or minimizes a linear objective function subject to linear constraints, thereby enabling in-database decision support. Prior work has established the equivalence of package queries to Integer Linear Programs (ILPs) and developed the SketchRefine algorithm for package query processing. While this algorithm was an important first step toward supporting prescriptive analytics scalably inside a relational database, it struggles when the data size grows beyond a few hundred million tuples or when the constraints become very tight. In this paper, we present Progressive Shading, a novel algorithm for processing package queries that can scale efficiently to billions of tuples and gracefully handle tight constraints. Progressive Shading solves a sequence of optimization problems over a hierarchy of relations, each resulting from an ever-finer partitioning of the original tuples into homogeneous groups until the original relation is obtained. This strategy avoids the premature discarding of high-quality tuples that can occur with SketchRefine. Our novel partitioning scheme, Dynamic Low Variance, can handle very large relations with multiple attributes and can dynamically adapt to both concentrated and spread-out sets of attribute values, provably outperforming traditional partitioning schemes such as kd-tree. We further optimize our system by replacing our off-the-shelf optimization software with customized ILP and LP solvers, called Dual Reducer and Parallel Dual Simplex respectively, that are highly accurate and orders of magnitude faster.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
引用它的顶会 Paper4
- Query Refinement for Diverse Top-k SelectionFelix S. Campbell, Alon Silberstein, Julia Stoyanovich, Yuval MoskovitchSIGMOD 2024 · 6 次引用
- Is Integer Linear Programming All You Need for Deletion Propagation? A Unified and Practical Approach for Generalized Deletion PropagationNeha Makhija, Wolfgang GatterbauerVLDB 2025 · 3 次引用
- Decisionhouse: Prescriptive Analytics in the Data StackMatteo Brucato, Fjodor Kholodkov, Soren Little, Jakob Mayer 等VLDB 2026 · 2 次引用
- Stochastic SketchRefine: Scaling In-Database Decision-Making under Uncertainty to Millions of TuplesRiddho R. Haque, Anh L. Mai, Matteo Brucato, Azza Abouzied 等VLDB 2025 · 1 次引用
它引用的 Paper2
相关 Paper
- Stochastic Package Queries in Probabilistic DatabasesMatteo Brucato, Nishant Yadav, Azza Abouzied, Peter J. Haas 等SIGMOD 2020 · 6 次引用
- Prefix-Cache-Aware Data Reordering for LLM-Augmented Database AnalyticsYingze Li, dong wang, Yiming Guo, Yao Chen 等ICML 2026
- DEPA-Delta Shifting and Distribution Shaping for Efficient Adaptive IndexingAhmad Khazaie, Holger PirkICDE 2025
- Determining Exact Quantiles with Randomized SummariesZiling Chen, Haoquan Guan, Shaoxu Song, Xiangdong Huang 等SIGMOD 2024 · 3 次引用
- Simplifying dependent reductions in the polyhedral modelCambridge Yang, Eric Atkinson, Michael CarbinPOPL 2021 · 5 次引用
