It is found that although the queries triggering slow planning are largely DBMS-specific, recurring pathologies involving correlated subqueries, CTE expansion, repeated subquery expressions, disjunctive joins, and constant folding affect multiple systems.
Abstract
Query planners are typically expected to produce optimized plans quickly, leading many researchers (including the authors of this paper) and practitioners to design systems that assume query planning is a low-cost operation. Using a lightweight agentic search, we show that this assumption does not always hold. Across seven DBMSes, including four commercial systems, we find at least one query per system that takes more than three minutes to plan. In addition to being slow to plan, such queries risk tying up database resources without performing useful work, creating a potential denial-of-service vector. We analyze the queries our search uncovers and compare how the seven systems respond to each pattern. We find that although the queries triggering slow planning are largely DBMS-specific, recurring pathologies involving correlated subqueries, CTE expansion, repeated subquery expressions, disjunctive joins, and constant folding affect multiple systems. We release our uncovered queries along with a curated suite of parameterized query pathologies that researchers and database engineers can use to test planner robustness. Overall, our results show that query planning cannot always be treated as a predictably inexpensive operation and that its latency and robustness deserve further attention from both database researchers and engineers.
DBRepro is presented, an automated end-to-end framework that formulates database generation as a constrained distribution synthesis problem that reproduces the execution performance of complex slow queries with high fidelity on a nearly 1 TB real-world dataset.
Zhao-Yang Zhang, Shuang Liu, Deng-Feng Xu et al.· Proceedings of the 41st IEEE...· 0 citations
This work presents Q-ACER (Query Aggregate Constraint Efficient Repair System), an efficient query repair system that enumerates candidate repairs of an input query such that the result set of the updated query fulfills user-provided constraints.
Vaishnavi Deshpande, Seok-Gyun Lee, Shatha Algarni et al.· Proceedings of the VLDB Endo...· 0 citations
QueryRoute is introduced, a benchmark that freezes the expensive artifacts needed to study this inference-time decision problem reproducibly: original queries, generated variants, ranked lists under multiple retrievers, retrieval scores, and per-query oracle labels.
Hai-Son Le, Negar Arabzadeh, Amin Bigdeli et al.· 0 citations
SKYPQ is demonstrated, a system that employs a novel, dominance-based data reduction method for package queries under updates that maintains a K-skyband index, a small, correctness-preserving subset of candidates, and applies a resolve checker to skip re-optimization when updates cannot affect the optimal package.
Vasileios Vittis, Azza Abouzied, Peter J. Haas et al.· Proceedings of the VLDB Endo...· 0 citations
This paper proposes ERIQ, a novel testing approach for detecting DBMS logic bugs from the perspective of checking result consistency across Equivalent Representations of Intermediate Query Results, and evaluated ERIQ on four widely used open-source DBMSs.
Xiao-Xu Niu, Gong Chen, Jin-Fu Chen et al.· 0 citations
This work systematically analyze how retriever and generator complexity interacts across factoid and multi-hop question answering (QA), including bridge and composition reasoning tasks, and introduces DRAG, a query-adaptive framework for selecting retriever-generator configurations.
Neeraj Anand, Payel Santra, Partha Basuchowdhuri et al.· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.