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

半环在增量视图维护中的作用

The Role of Semirings in Incremental View Maintenance

University of Zurich(苏黎世大学)

Eden Chmielewski, Andrei Draghici, Dan Olteanu, Haozhe Zhang

AI总结:

研究在无加法逆元的交换半环K下,插入操作对K-数据库的增量视图维护问题,提出p-层次查询类,实现摊销更新时间和常数延迟枚举,并给出非p-层次查询的条件性下界。

摘要:

我们研究了在向$K$-数据库插入操作下的增量视图维护(IVM)问题,其中$K$是无加法逆元的交换半环。本文提出的关键观察是,IVM问题的复杂性从根本上取决于底层半环。我们引入了一类称为$p$-层次化的合取查询,并证明对于任意具有分数超树宽度$\fhtw$的$p$-层次化查询,以及任意长度为$N$的仅插入更新序列(初始为空$K$-数据库,半环$K$无加法逆元),我们可以构建一个数据结构,其摊销更新时间$\bigO(N^{\fhtw-1})$,并支持查询结果的常数延迟枚举。特别地,任何$\alpha$-无环的$p$-层次化查询的摊销更新时间为常数。我们还给出了条件性下界,表明任何不含自连接的非$p$-层次化合取查询,在向$K$-数据库插入操作下,无法以摊销常数更新时间和常数枚举延迟维护。这里,$K$可以是自然半环及其到溯源和协方差半环的推广,或任何幂等且严格有序的半环(如热带半环)。综合起来,我们的上界和下界意味着对于无自连接的合取查询和上述半环,仅插入维护存在一个二分法:一个查询可以以摊销常数更新时间和常数枚举延迟维护当且仅当它是$\alpha$-无环的$p$-层次化查询。

英文摘要:

We study the problem of incremental view maintenance (IVM) under inserts to semiring-annotated databases. The key observation put forward in this paper is that the complexity of the IVM problem depends fundamentally on the underlying semiring. We introduce a class of conjunctive queries called p-hierarchical. For a zero-sum free and zero-divisor free commutative semiring $K$, we show that for any p-hierarchical query with fractional hypertree width fhtw and any insert-only update sequence of length N to an initially empty K-database, we can construct a data structure that can be updated in O(N^{fhtw-1}) amortized time and supports the enumeration of the query result with constant delay. In particular, the amortized update time for any p-hierarchical alpha-acyclic query is constant. For a class of semirings used to model a wide range of computational problems, we give conditional lower bounds showing that any conjunctive query without self-joins that is not p-hierarchical cannot be maintained with constant amortized update time and constant enumeration delay under inserts. This class includes the natural semiring and its generalizations to the provenance and covariance semirings, as well as idempotent and strictly ordered semirings such as the tropical semiring. When put together, our upper and lower bounds imply a dichotomy for the insert-only maintenance of conjunctive queries without self-joins over every semiring in our class: such a query can be maintained with constant amortized update time and constant enumeration delay if and only if it is p-hierarchical alpha-acyclic.

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

↑