Answering UCQs under Updates and in the Presence of Integrity Constraints

Christoph Berkholz, Jens Keppeler, Nicole Schweikardt

DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · 2018 · 21 citations · 0 references

DOIFull text

Open access

Concepts

Abstract

We investigate the query evaluation problem for fixed queries over
\nfully dynamic databases where tuples can be inserted or deleted.
\nThe task is to design a dynamic data structure that can immediately
\nreport the new result of a fixed query after every database update.
\nWe consider unions of conjunctive queries (UCQs) and focus on the query evaluation tasks testing (decide whether an input tuple belongs to the query result), enumeration (enumerate, without repetition,
\nall tuples in the query result), and counting (output the number of tuples in the query result).
\n
\nWe identify three increasingly restrictive classes of UCQs which we
\ncall t-hierarchical, q-hierarchical, and exhaustively q-hierarchical UCQs.
\nOur main results provide the following dichotomies:
\nIf the query's homomorphic core is t-hierarchical (q-hierarchical,
\nexhaustively q-hierarchical), then the testing (enumeration, counting)
\nproblem can be solved with constant update time and constant testing time (delay, counting time). Otherwise, it cannot be solved with sublinear update time and sublinear testing time (delay, counting time), unless the OV-conjecture and/or the OMv-conjecture fails. 
\n
\nWe also study the complexity of query evaluation in the dynamic setting in the presence of integrity constraints, and we obtain similar dichotomy results for the special case of small domain constraints (i.e., constraints which state that 
\nall values in a particular column of a relation belong to a fixed domain of constant size).