Answering UCQs under updates and in the presence of integrity constraints
Christoph Berkholz, Jens Keppeler, Nicole Schweikardt

TL;DR
This paper studies dynamic algorithms for evaluating unions of conjunctive queries (UCQs) over databases that undergo updates, providing complexity dichotomies based on query classes and considering integrity constraints.
Contribution
It introduces new classes of UCQs and establishes complexity dichotomies for query testing, enumeration, and counting under database updates and constraints.
Findings
Constant-time updates and query testing for t-hierarchical UCQs.
Sublinear update and testing times are unlikely for non-hierarchical UCQs.
Complexity results extend to databases with small domain constraints.
Abstract
We investigate the query evaluation problem for fixed queries over fully dynamic databases where tuples can be inserted or deleted. The task is to design a dynamic data structure that can immediately report the new result of a fixed query after every database update. We 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, all tuples in the query result), and counting (output the number of tuples in the query result). We identify three increasingly restrictive classes of UCQs which we call t-hierarchical, q-hierarchical, and exhaustively q-hierarchical UCQs. Our main results provide the following dichotomies: If the query's homomorphic core is t-hierarchical (q-hierarchical, exhaustively q-hierarchical), then the testing (enumeration,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
