Trade-offs in Static and Dynamic Evaluation of Hierarchical Queries

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Kara, Ahmet, Nikolic, Milos, Olteanu, Dan, Zhang, Haozhe
Natura: Preprint
Pubblicazione: 2019
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916122548240384
author Kara, Ahmet
Nikolic, Milos
Olteanu, Dan
Zhang, Haozhe
author_facet Kara, Ahmet
Nikolic, Milos
Olteanu, Dan
Zhang, Haozhe
contents We investigate trade-offs in static and dynamic evaluation of hierarchical queries with arbitrary free variables. In the static setting, the trade-off is between the time to partially compute the query result and the delay needed to enumerate its tuples. In the dynamic setting, we additionally consider the time needed to update the query result under single-tuple inserts or deletes to the database. Our approach observes the degree of values in the database and uses different computation and maintenance strategies for high-degree (heavy) and low-degree (light) values. For the latter it partially computes the result, while for the former it computes enough information to allow for on-the-fly enumeration. We define the preprocessing time, the update time, and the enumeration delay as functions of the light/heavy threshold. By appropriately choosing this threshold, our approach recovers a number of prior results when restricted to hierarchical queries. We show that for a restricted class of hierarchical queries, our approach achieves worst-case optimal update time and enumeration delay conditioned on the Online Matrix-Vector Multiplication Conjecture.
format Preprint
id arxiv_https___arxiv_org_abs_1907_01988
institution arXiv
publishDate 2019
record_format arxiv
spellingShingle Trade-offs in Static and Dynamic Evaluation of Hierarchical Queries
Kara, Ahmet
Nikolic, Milos
Olteanu, Dan
Zhang, Haozhe
Databases
Logic in Computer Science
We investigate trade-offs in static and dynamic evaluation of hierarchical queries with arbitrary free variables. In the static setting, the trade-off is between the time to partially compute the query result and the delay needed to enumerate its tuples. In the dynamic setting, we additionally consider the time needed to update the query result under single-tuple inserts or deletes to the database. Our approach observes the degree of values in the database and uses different computation and maintenance strategies for high-degree (heavy) and low-degree (light) values. For the latter it partially computes the result, while for the former it computes enough information to allow for on-the-fly enumeration. We define the preprocessing time, the update time, and the enumeration delay as functions of the light/heavy threshold. By appropriately choosing this threshold, our approach recovers a number of prior results when restricted to hierarchical queries. We show that for a restricted class of hierarchical queries, our approach achieves worst-case optimal update time and enumeration delay conditioned on the Online Matrix-Vector Multiplication Conjecture.
title Trade-offs in Static and Dynamic Evaluation of Hierarchical Queries
topic Databases
Logic in Computer Science
url https://arxiv.org/abs/1907.01988