作者
Xuanhe Zhou, Guoliang Li, Chengliang Chai, Jianhua Feng
发表日期
2021/9/1
期刊
Proceedings of the VLDB Endowment
卷号
15
期号
1
页码范围
46-58
出版商
VLDB Endowment
简介
Query rewrite transforms a SQL query into an equivalent one but with higher performance. However, SQL rewrite is an NP-hard problem, and existing approaches adopt heuristics to rewrite the queries. These heuristics have two main limitations. First, the order of applying different rewrite rules significantly affects the query performance. However, the search space of all possible rewrite orders grows exponentially with the number of query operators and rules and it is rather hard to find the optimal rewrite order. Existing methods apply a pre-defined order to rewrite queries and will fall in a local optimum. Second, different rewrite rules have different benefits for different queries. Existing methods work on single plans but cannot effectively estimate the benefits of rewriting a query. To address these challenges, we propose a policy tree based query rewrite framework, where the root is the input query and each node is a …
引用总数
学术搜索中的文章
X Zhou, G Li, C Chai, J Feng - Proceedings of the VLDB Endowment, 2021