arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1702.06370cs.DBcs.DScs.LO
收藏

在Updates下创建连接符

Answering Conjunctive Queries under Updates

Christoph Berkholz, Jens Keppeler, Nicole Schweikardt

摘要:

我们考虑的任务是枚举和计数的$k$ -ary合取查询对关系数据库,可以通过插入或删除元组更新的答案。我们展示了一个新的概念,q-层次合取查询,并表明这些可以有效地保持在以下意义上。在线性时间预处理阶段,我们可以建立一个数据结构,使查询结果的常数延迟枚举;当数据库更新时,我们可以更新数据结构,并在常数时间内重新启动枚举阶段。对于自连接自由合取查询的特殊情况,我们得到一个二分法:如果查询不是q-层次的,那么查询枚举与次线性$^\ast$延迟和次线性更新时间(和任意预处理时间)是不可能的。为了回答布尔合取查询和更一般的问题,计数的解决方案的k元查询,我们得到完整的二分法:如果查询的同态核心是q-层次,那么查询结果的大小可以计算在线性时间和保持恒定的更新时间。否则,查询结果的大小不能保持次线性更新时间。我们所有的下界都依赖于OMv猜想,这是一个关于在线矩阵向量乘法的难度的猜想,最近出现在细粒度复杂性领域,以解决动态问题的难度。计数问题的下限还依赖于正交向量猜想,这反过来又隐含着强指数时间假设。$^\ast)$次线性是指某些$\varepsilon>0$的$O(n^{1-\varepsilon})$,其中$n$是当前数据库活动域的大小。

英文摘要:

We consider the task of enumerating and counting answers to $k$-ary conjunctive queries against relational databases that may be updated by inserting or deleting tuples. We exhibit a new notion of q-hierarchical conjunctive queries and show that these can be maintained efficiently in the following sense. During a linear time preprocessing phase, we can build a data structure that enables constant delay enumeration of the query results; and when the database is updated, we can update the data structure and restart the enumeration phase within constant time. For the special case of self-join free conjunctive queries we obtain a dichotomy: if a query is not q-hierarchical, then query enumeration with sublinear$^\ast$ delay and sublinear update time (and arbitrary preprocessing time) is impossible. For answering Boolean conjunctive queries and for the more general problem of counting the number of solutions of k-ary queries we obtain complete dichotomies: if the query's homomorphic core is q-hierarchical, then size of the the query result can be computed in linear time and maintained with constant update time. Otherwise, the size of the query result cannot be maintained with sublinear update time. All our lower bounds rely on the OMv-conjecture, a conjecture on the hardness of online matrix-vector multiplication that has recently emerged in the field of fine-grained complexity to characterise the hardness of dynamic problems. The lower bound for the counting problem additionally relies on the orthogonal vectors conjecture, which in turn is implied by the strong exponential time hypothesis. $^\ast)$ By sublinear we mean $O(n^{1-\varepsilon})$ for some $\varepsilon>0$, where $n$ is the size of the active domain of the current database.

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

↑