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

输出敏感的合取查询求值

Output-sensitive Conjunctive Query Evaluation

Shaleen Deep, Hangdong Zhao, Austen Z. Fan, Paraschos Koutris

AI总结:

本文提出一种输出敏感的无环合取查询求值算法,通过推广Yannakakis算法在多项式因子意义上改进运行时间,不依赖快速矩阵乘法,并给出基于k-团猜想变体的匹配下界,在路径和星形等常见查询上改进了已有最优结果。

摘要:

连接求值是数据库系统执行的最基本操作之一,也可以说是数据库界研究得最为透彻的问题。已经开发了数量惊人的连接算法,商业数据库引擎使用经过精细调优的连接启发式方法,这些方法考虑了许多因素,包括谓词的选择性、内存、IO等。然而,大多数结果要么面向全连接查询,要么面向带有度约束(如主键-外键关系)的非全连接查询,这些约束使连接更易于求值。此外,大多数算法也不是输出敏感的。在本文中,我们提出了一种新颖的、输出敏感的算法,用于求值包含任意自由变量的无环合取查询(CQs)。我们的结果基于对Yannakakis算法的一种新颖推广,并表明可以将Yannakakis算法的运行时间保证改进一个多项式因子。重要的是,我们的算法改进不依赖于快速矩阵乘法的使用,而最近提出的一种算法则依赖于此。该上界辅以基于k-团猜想两种变体的匹配下界。我们算法的应用恢复了已知的先前结果,并改进了常见查询(如路径和星形)上已知的最先进结果。

英文摘要:

Join evaluation is one of the most fundamental operations performed by database systems and arguably the most well-studied problem in the Database community. A staggering number of join algorithms have been developed, and commercial database engines use finely tuned join heuristics that take into account many factors including the selectivity of predicates, memory, IO, etc. However, most of the results have catered to either full join queries or non-full join queries but with degree constraints (such as PK-FK relationships) that make joins \emph{easier} to evaluate. Further, most of the algorithms are also not output-sensitive. In this paper, we present a novel, output-sensitive algorithm for the evaluation of acyclic Conjunctive Queries (CQs) that contain arbitrary free variables. Our result is based on a novel generalization of the Yannakakis algorithm and shows that it is possible to improve the running time guarantee of the Yannakakis algorithm by a polynomial factor. Importantly, our algorithmic improvement does not depend on the use of fast matrix multiplication, as a recently proposed algorithm does. The upper bound is complemented with matching lower bounds conditioned on two variants of the $k$-clique conjecture. The application of our algorithm recovers known prior results and improves on known state-of-the-art results for common queries such as paths and stars.

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

↑