Delta: A Learned Mixed Cost-based Query Optimization Framework
Jiazhen Peng, Zheng Qu, Xiaoye Miao, Rong Zhu

TL;DR
Delta is a novel query optimization framework that combines a query compatibility detector with a two-stage planner, leveraging learned models to generate higher-quality plans more efficiently than existing methods.
Contribution
It introduces a mixed cost-based optimization approach with a compatibility detector and a two-stage planner, reducing training costs and improving plan quality.
Findings
Achieves 2.34x speedup over PostgreSQL.
Outperforms state-of-the-art learned methods by 2.21x.
Effectively filters incompatible queries to improve efficiency.
Abstract
Query optimizer is a crucial module for database management systems. Existing optimizers exhibit two flawed paradigms: (1) cost-based optimizers use dynamic programming with cost models but face search space explosion and heuristic pruning constraints; (2) value-based ones train value networks to enable efficient beam search, but incur higher training costs and lower accuracy. They also lack mechanisms to detect queries where they may perform poorly. To determine more efficient plans, we propose Delta, a mixed cost-based query optimization framework that consists of a compatible query detector and a two-stage planner. Delta first employs a Mahalanobis distancebased detector to preemptively filter out incompatible queries where the planner might perform poorly. For compatible queries, Delta activates its two-stage mixed cost-based planner. Stage I serves as a coarse-grained filter to…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Database Systems and Queries · Data Management and Algorithms · Cloud Computing and Resource Management
