Towards Update-Dependent Analysis of Query Maintenance

Xiao Hu, Qichen Wang*

*Corresponding author for this work

Research output: Contribution to journalJournal articlepeer-review

Abstract

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.
Original languageEnglish
Article number117
Pages (from-to)1-25
Number of pages25
JournalProceedings of the ACM on Management of Data
Volume3
Issue number2
DOIs
Publication statusPublished - May 2025

User-Defined Keywords

  • conjunctive query
  • insertion-only updates
  • FIFO updates
  • mixed updates

Fingerprint

Dive into the research topics of 'Towards Update-Dependent Analysis of Query Maintenance'. Together they form a unique fingerprint.

Cite this