SlabCity: Whole-Query Optimization using Program Synthesis.

Proc. VLDB Endow.(2023)

引用 0|浏览3
暂无评分
摘要
Query rewriting is often a prerequisite for effective query optimization, particularly for poorly-written queries. Prior work on query rewriting has relied on a set of "rules" based on syntactic pattern-matching. Whether relying oil manual rules or auto-generated ones, rule-based query rewriters are inherently limited in their ability to handle new query patterns. Their success is limited by the quality and quantity of the rules provided to them. To our knowledge, we present the first synthesis-based query rewriting technique, SLABCITY, capable of whole-query optimization without relying on any rewrite rules. SLABCITY directly searches the space of SQL queries using a novel query synthesis algorithm that leverages a new concept called query dataflows. We evaluate SLABCITY on four workloads, including a newly curated benchmark with more than 1000 real-life queries. We show that not only can SLABCITY optimize more queries than state-of-the-art query rewriting techniques, but interestingly, it also leads to queries that are significantly faster than those generated by rule-based systems.
更多
查看译文
关键词
program synthesis,optimization,whole-query
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要