TY - JOUR
T1 - Towards Update-Dependent Analysis of Query Maintenance
AU - Hu, Xiao
AU - Wang, Qichen
N1 - This work was supported by NSERC – Discovery Grant and Hong Kong RGC Grants (Project No. 12200524, C2004-21GF, and C2003-23Y).
Publisher copyright:
© 2025 Copyright held by the owner/author(s).
PY - 2025/5
Y1 - 2025/5
N2 - This paper studies the hardness of maintaining self-join-free conjunctive queries over a dynamic database, where tuples can be inserted or deleted. The worst-case complexity of this problem under arbitrary updates has been well understood. It is known that most practical queries require Ω(√|𝐷|) maintenance time for each update to ensure 𝑂(1)-delay enumeration, barring a very restricted class of queries (known as “q-hierarchical” queries). Nonetheless, most real-world update sequences are not arbitrary, far away from the worst-case scenario; instead, they are so “nice” that queries can greatly benefit from their inherent structure in query maintenance. In this paper, we aim to understand the hardness of query maintenance under different update sequences, in particular, the insertion-only (or deletion-only), first-in-first-out (FIFO), arbitrarily worse sequences, as well as their “mixed” sequences. We first provide a comprehensive characterization of queries that can be maintained in 𝑂(1) time for 𝑂(1)-delay enumeration over FIFO sequences. Then, we address mixed sequences, which may exhibit insertion-only or FIFO patterns on subqueries but lack a specific pattern in totality, and introduce a structural dichotomy for determining whether the input query can be maintained in 𝑂(1) time for 𝑂(1)-delay enumeration over mixed sequences.
AB - This paper studies the hardness of maintaining self-join-free conjunctive queries over a dynamic database, where tuples can be inserted or deleted. The worst-case complexity of this problem under arbitrary updates has been well understood. It is known that most practical queries require Ω(√|𝐷|) maintenance time for each update to ensure 𝑂(1)-delay enumeration, barring a very restricted class of queries (known as “q-hierarchical” queries). Nonetheless, most real-world update sequences are not arbitrary, far away from the worst-case scenario; instead, they are so “nice” that queries can greatly benefit from their inherent structure in query maintenance. In this paper, we aim to understand the hardness of query maintenance under different update sequences, in particular, the insertion-only (or deletion-only), first-in-first-out (FIFO), arbitrarily worse sequences, as well as their “mixed” sequences. We first provide a comprehensive characterization of queries that can be maintained in 𝑂(1) time for 𝑂(1)-delay enumeration over FIFO sequences. Then, we address mixed sequences, which may exhibit insertion-only or FIFO patterns on subqueries but lack a specific pattern in totality, and introduce a structural dichotomy for determining whether the input query can be maintained in 𝑂(1) time for 𝑂(1)-delay enumeration over mixed sequences.
KW - conjunctive query
KW - insertion-only updates
KW - FIFO updates
KW - mixed updates
U2 - 10.1145/3725254
DO - 10.1145/3725254
M3 - Journal article
SN - 2836-6573
VL - 3
SP - 1
EP - 25
JO - Proceedings of the ACM on Management of Data
JF - Proceedings of the ACM on Management of Data
IS - 2
M1 - 117
ER -