Conjunctive Queries with Free Access Patterns under Updates

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kara, Ahmet, Nikolic, Milos, Olteanu, Dan, Zhang, Haozhe
Format: Preprint
Published: 2022
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915347113705472
author Kara, Ahmet
Nikolic, Milos
Olteanu, Dan
Zhang, Haozhe
author_facet Kara, Ahmet
Nikolic, Milos
Olteanu, Dan
Zhang, Haozhe
contents We study the problem of answering conjunctive queries with free access patterns (CQAPs) under updates. A free access pattern is a partition of the free variables of the query into input and output. The query returns tuples over the output variables given a tuple of values over the input variables. We introduce a fully dynamic evaluation approach that works for all CQAPs and is optimal for two classes of CQAPs. This approach recovers prior work on the dynamic evaluation of conjunctive queries without access patterns. We first give a syntactic characterisation of all CQAPs that admit constant time per single-tuple update and whose output tuples can be enumerated with constant delay given a tuple of values over the input variables. We further chart the complexity trade-off between the preprocessing time, update time and enumeration delay for a class of CQAPs. For some of these CQAPs, our approach achieves optimal, albeit non-constant, update time and delay. This optimality is predicated on the Online Matrix-Vector Multiplication conjecture. We finally adapt our approach to the dynamic evaluation of tractable CQAPs over probabilistic databases under updates.
format Preprint
id arxiv_https___arxiv_org_abs_2206_09032
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle Conjunctive Queries with Free Access Patterns under Updates
Kara, Ahmet
Nikolic, Milos
Olteanu, Dan
Zhang, Haozhe
Databases
We study the problem of answering conjunctive queries with free access patterns (CQAPs) under updates. A free access pattern is a partition of the free variables of the query into input and output. The query returns tuples over the output variables given a tuple of values over the input variables. We introduce a fully dynamic evaluation approach that works for all CQAPs and is optimal for two classes of CQAPs. This approach recovers prior work on the dynamic evaluation of conjunctive queries without access patterns. We first give a syntactic characterisation of all CQAPs that admit constant time per single-tuple update and whose output tuples can be enumerated with constant delay given a tuple of values over the input variables. We further chart the complexity trade-off between the preprocessing time, update time and enumeration delay for a class of CQAPs. For some of these CQAPs, our approach achieves optimal, albeit non-constant, update time and delay. This optimality is predicated on the Online Matrix-Vector Multiplication conjecture. We finally adapt our approach to the dynamic evaluation of tractable CQAPs over probabilistic databases under updates.
title Conjunctive Queries with Free Access Patterns under Updates
topic Databases
url https://arxiv.org/abs/2206.09032