Source linked

Semiring Dichotomy: Constant-Time View Maintenance Только для p-иерархических запросов

Новый теоретический результат доказывает, что при обновлениях только с вставками конъюнктивные запросы без самостоятельных соединений допускают постоянное время поддержания, если и только если они α-ацикличны и p-иерархичны — чистый разрез.

incremental view maintenancesemiringsconjunctive queriesdatabase theorycomplexity theoryarxiv

A paper on arXiv draws a sharp line under incremental view maintenance: for insert-only updates on $K$-databases over commutative semirings without additive inverse, constant-time maintenance is possible precisely when the query is $\alpha$-acyclic and $p$-hierarchical.

The Core Result: A Clean Dichotomy

The authors introduce the class of $p$-hierarchical conjunctive queries and show that for any query in that class with fractional hypertree width $\fhtw$, you can build a data structure supporting inserts in amortized $\bigO(N^{\fhtw-1})$ time and constant-delay enumeration. For $\alpha$-acyclic $p$-hierarchical queries — which cover many practical join patterns — the amortized update time drops to constant. That’s the upper bound.

On the flip side, the paper proves conditional lower bounds: any conjunctive query without self-joins that is not $p$-hierarchical cannot be maintained with both amortized constant update time and constant enumeration delay. This holds for the natural semiring, the provenance semiring, the covariance semiring, and any idempotent strictly ordered semiring like the tropical semiring.

Why Semirings Matter

Traditional IVM work often assumes a ring with subtraction, which allows techniques like delta processing. But many real provenance and cost computations live in semirings without additive inverses — think counting distinct paths, min-plus costs, or bag semantics. The paper’s framework covers all those at once. The dichotomy doesn’t just hold for one weird semiring; it’s uniform across a broad family.

Concretely, if you’re maintaining a view over a bag database (natural semiring) or a tropical semiring (shortest path costs), and your query isn’t $p$-hierarchical, you’re stuck — constant-time maintenance is information-theoretically impossible under standard assumptions.

What This Means for Database Systems

For system builders implementing incremental maintenance engines, this provides a precise litmus test. Before you invest in an IVM strategy, check whether your query pattern is $\alpha$-acyclic and $p$-hierarchical. If not, stop hoping for constant-time updates — you’ll need to settle for something slower or relax enumeration guarantees.

The paper also gives a concrete bound ($\bigO(N^{\fhtw-1})$) for the cases that do work, letting you reason about trade-offs up front. Expect this dichotomy to become the new baseline for judging IVM feasibility in production systems.


Source: The Role of Semirings in Incremental View Maintenance
Domain: arxiv.org

Read original source ->

External source stays available while the OJO article and comment thread stay local.

Comments load interactively on the live page.