Structure-Guided Query Evaluation: Towards Bridging the Gap from Theory to Practice

03/05/2023
by   Georg Gottlob, et al.
0

Join queries involving many relations pose a severe challenge to today's query optimisation techniques. To some extent, this is due to the fact that these techniques do not pay sufficient attention to structural properties of the query. In stark contrast, the Database Theory community has intensively studied structural properties of queries (such as acyclicity and various notions of width) and proposed efficient query evaluation techniques through variants of Yannakakis' algorithm. However, although most queries in practice actually are acyclic or have low width, structure-guided query evaluation techniques based on Yannakakis' algorithm have not found their way into mainstream database technology yet. The goal of this work is to address this gap between theory and practice and to demonstrate that the consideration of query structure can improve query evaluation performance on modern DBMSs significantly in cases that have been traditionally challenging. In particular, we study the performance of structure-guided query evaluation in three architecturally distinct DBMSs by rewriting SQL queries into a sequence of SQL statements that express an execution of Yannakakis' algorithm. Moreover, we identify a class of queries that is particularly well suited for our approach and allows query answering in a variety of common scenarios without materializing any join. Through empirical evaluation we show that structure-guided query evaluation can make the evaluation of many difficult join queries feasible whereas their evaluation requires a prohibitive amount of time and memory on current DBMSs.

READ FULL TEXT

page 19

page 20

page 21

research
09/05/2017

Covers of Query Results

We introduce succinct lossless representations of query results called c...
research
01/19/2023

Work-Efficient Query Evaluation with PRAMs

The paper studies query evaluation in parallel constant time in the PRAM...
research
06/15/2018

Efficient Handling of SPARQL OPTIONAL for OBDA (Extended Version)

OPTIONAL is a key feature in SPARQL for dealing with missing information...
research
04/28/2021

Fast Parallel Hypertree Decompositions in Logarithmic Recursion Depth

Modern trends in data collection are bringing current mainstream techniq...
research
05/21/2018

Algorithms and Analysis for the SPARQL Constructs

As Resource Description Framework (RDF) is becoming a popular data model...
research
05/30/2018

Progressive Evaluation of Queries over Tagged Data

Modern information systems often collect raw data in the form of text, i...
research
03/25/2011

An Empirical Study of Real-World SPARQL Queries

Understanding how users tailor their SPARQL queries is crucial when desi...

Please sign up or login with your details

Forgot password? Click here to reset