Efficient Query Re-optimization with Judicious Subquery Selections
Junyi Zhao, Huanchen Zhang, Yihan Gao

TL;DR
This paper introduces QuerySplit, a novel query re-optimization algorithm that improves performance by selectively re-optimizing subqueries based on logical plans, reducing execution time significantly.
Contribution
QuerySplit bypasses reliance on initial global plans by generating subqueries from logical plans and prioritizing less damaging subqueries for re-optimization.
Findings
QuerySplit reduces execution time by 35% on the Join Order Benchmark.
Performance gap between QuerySplit and an optimal optimizer is within 4%.
Outperforms four state-of-the-art re-optimization algorithms.
Abstract
Query re-optimization is an adaptive query processing technique that re-invokes the optimizer at certain points in query execution. The goal is to dynamically correct the cardinality estimation errors using the statistics collected at runtime to adjust the query plan to improve the overall performance. We identify a key weakness in existing re-optimization algorithms: their subquery division and re-optimization trigger strategies rely heavily on the optimizer's initial plan, which can be far away from optimal. We, therefore, propose QuerySplit, a novel re-optimization algorithm that skips the potentially misleading global plan and instead generates subqueries directly from the logical plan as the basic re-optimization units. By developing a cost function that prioritizes the execution of less "damaging" subqueries, QuerySplit successfully postpones (sometimes avoids) the execution of…
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
TopicsData Management and Algorithms · Advanced Database Systems and Queries · Constraint Satisfaction and Optimization
