Back to Search Start Over

Learned Query Optimization by Constraint-Based Query Plan Augmentation.

Authors :
Ye, Chen
Duan, Haoyang
Zhang, Hua
Wu, Yifan
Dai, Guojun
Source :
Mathematics (2227-7390); Oct2024, Vol. 12 Issue 19, p3102, 22p
Publication Year :
2024

Abstract

Over the last decades, various cost-based optimizers have been proposed to generate optimal plans for SQL queries. These optimizers are key to achieving good performance in database systems and can speed up query execution. Still, they may need enormous expert efforts and perform poorly on complicated queries. Learning-based optimizers have been shown to achieve high-quality plans by learning from past experiences. However, these solutions treat each query separately and neglect the semantic equivalence among different queries. Intuitively, a high-quality plan may be obtained for a complicated query by discovering a simple equivalent query. Motivated by this, in this paper, we present Celo, a novel constraint-enhanced learned optimizer to directly integrate the equivalent information of queries into the learning-based model. We apply denial constraints to identify equivalent queries by replacing equivalent predicates. Given a query, we augment the query plans generated by the learning-based model with the high-quality plans of its equivalent queries. Then, a more potentially well-performed plan will be predicted among the augmented query plans. Extensive experiments using real-world datasets demonstrated that Celo outperforms the previous state-of-the-art (SOTA) results even with few constraints. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
22277390
Volume :
12
Issue :
19
Database :
Complementary Index
Journal :
Mathematics (2227-7390)
Publication Type :
Academic Journal
Accession number :
180272562
Full Text :
https://doi.org/10.3390/math12193102