Join queries involving many relations pose a severe challenge to today's query optimisation techniques. To some extent, this is due to the fact that these techniques do not pay sufficient attention to structural properties of the query. In stark contrast, the Database Theory community has intensively studied structural properties of queries (such as acyclicity and various notions of width) and proposed efficient query evaluation techniques through variants of Yannakakis' algorithm. However, although most queries in practice actually are acyclic or have low width, structure-guided query evaluation techniques based on Yannakakis' algorithm have not found their way into mainstream database technology yet. The goal of this work is to address this gap between theory and practice and to demonstrate that the consideration of query structure can improve query evaluation performance on modern DBMSs significantly in cases that have been traditionally challenging. In particular, we study the performance of structure-guided query evaluation in three architecturally distinct DBMSs by rewriting SQL queries into a sequence of SQL statements that express an execution of Yannakakis' algorithm. Moreover, we identify a class of queries that is particularly well suited for our approach and allows query answering in a variety of common scenarios without materializing any join. Through empirical evaluation we show that structure-guided query evaluation can make the evaluation of many difficult join queries feasible whereas their evaluation requires a prohibitive amount of time and memory on current DBMSs.
翻译:在许多关系中,涉及许多关系的合并询问对今天的查询优化技术构成严重挑战,在某种程度上,这是因为这些技术没有足够重视查询的结构性特性。与此形成鲜明对比的是,数据库理论界通过Yannakakis的算法变量,深入研究了查询的结构特性(如周期性和各种宽度概念),并提出了高效的查询评价技术。然而,尽管大多数实际查询实际上都是周期性的或宽度低的,但基于Yannakakis算法的结构指导查询评价技术尚未进入主流数据库技术。这项工作的目标是解决理论与实践之间的差距,并表明在传统上具有挑战性的情况下,对查询结构的考虑能够大大改进现代DBMS的评价绩效。我们特别通过重新撰写SQL查询,将其输入SQL的顺序,显示对Yannakakis算法的执行尚未进入主流数据库技术。此外,我们确定了一系列查询的类别,对于理论和实践的考虑能够大大改进现代DBMS系统的评价绩效。我们通过重新撰写SQL查询的当前系列说明,从而能够将大量的经验性评估纳入我们的共同方向性查询。</s>