arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.16540cs.DB
收藏

ADOPT:通过强化学习自适应优化最坏情况最优连接算法的属性顺序

ADOPT: Adaptively Optimizing Attribute Orders for Worst-Case Optimal Join Algorithms via Reinforcement Learning

Junxiong Wang, Immanuel Trummer, Ahmet Kara, Dan Olteanu

AI总结:

提出查询引擎ADOPT,结合自适应查询处理与最坏情况最优连接算法,通过强化学习在查询执行中动态探索并快速收敛至接近最优的属性顺序,在复杂查询上优于现有商业和开源系统。

摘要:

最坏情况最优连接算法的性能取决于连接属性的处理顺序。由于可能的顺序空间巨大,以及在数据倾斜或数据相关情况下执行成本估计不可靠,在查询执行前选择好的顺序非常困难。我们提出了ADOPT,这是一个将自适应查询处理与最坏情况最优连接算法相结合的查询引擎,它使用连接属性上的顺序,而不是关系上的连接顺序。ADOPT将查询执行划分为多个片段,在其中尝试不同的属性顺序。基于属性顺序性能的运行时反馈,ADOPT能快速收敛到接近最优的顺序。它通过一种新颖的数据结构避免跨不同顺序的冗余工作,跟踪记录已成功处理的连接输入部分。它通过强化学习选择要尝试的属性顺序,平衡了探索新顺序的需求与利用有前景顺序的愿望。在使用各种数据集和查询的实验中,当查询变得复杂从而难以优化时,它优于基线,包括使用最坏情况最优连接算法的商业和开源系统。

英文摘要:

The performance of worst-case optimal join algorithms depends on the order in which the join attributes are processed. Selecting good orders before query execution is hard, due to the large space of possible orders and unreliable execution cost estimates in case of data skew or data correlation. We propose ADOPT, a query engine that combines adaptive query processing with a worst-case optimal join algorithm, which uses an order on the join attributes instead of a join order on relations. ADOPT divides query execution into episodes in which different attribute orders are tried. Based on run time feedback on attribute order performance, ADOPT converges quickly to near-optimal orders. It avoids redundant work across different orders via a novel data structure, keeping track of parts of the join input that have been successfully processed. It selects attribute orders to try via reinforcement learning, balancing the need for exploring new orders with the desire to exploit promising orders. In experiments with various data sets and queries, it outperforms baselines, including commercial and open-source systems using worst-case optimal join algorithms, whenever queries become complex and therefore difficult to optimize.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑