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

结合二元连接与最坏情况最优连接优化子图查询

Optimizing Subgraph Queries by Combining Binary and Worst-Case Optimal Joins

University of Waterloo(滑铁卢大学)

Amine Mhedhbi, Semih Salihoglu

AI总结:

本研究针对子图查询优化问题,设计了基于代价的优化器,可生成混合二元连接与最坏情况最优多路交集的计划,还提出执行时自适应调整顶点顺序的技术,经实验验证有效且已集成至Graphflow DBMS。

摘要:

我们研究了利用新型最坏情况最优连接计划优化子图查询的问题。最坏情况最优计划通过多路交集每次匹配一个查询顶点来求值查询,优化这类计划的核心问题是选择待匹配查询顶点的顺序。我们设计了一种基于代价的优化器,它具备两项功能:(一)为最坏情况最优计划选取高效的查询顶点顺序;(二)生成融合传统二元连接与最坏情况最优风格多路交集的混合计划。我们的代价度量将二元连接代价与一种名为交集代价的新型代价度量相结合,该优化器的计划空间包含了以往基于树分解的工作的计划空间中未涵盖的计划。除优化器外,我们还提出了一种自适应技术,可在查询执行过程中调整最坏情况最优子计划的顺序。我们通过大量实验验证了该优化器所选计划与自适应技术的有效性,该优化器已集成至Graphflow DBMS中。

英文摘要:

We study the problem of optimizing subgraph queries using the new worst-case optimal join plans. Worst-case optimal plans evaluate queries by matching one query vertex at a time using multiway intersections. The core problem in optimizing worst-case optimal plans is to pick an ordering of the query vertices to match. We design a cost-based optimizer that (i) picks efficient query vertex orderings for worst-case optimal plans; and (ii) generates hybrid plans that mix traditional binary joins with worst-case optimal style multiway intersections. Our cost metric combines the cost of binary joins with a new cost metric called intersection-cost. The plan space of our optimizer contains plans that are not in the plan spaces based on tree decompositions from prior work. In addition to our optimizer, we describe an adaptive technique that changes the orderings of the worst-case optimal sub-plans during query execution. We demonstrate the effectiveness of the plans our optimizer picks and adaptive technique through extensive experiments. Our optimizer is integrated into the Graphflow DBMS.

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

↑