Efficient Evaluation of Arbitrary Relational Calculus Queries

10/18/2022
by   Martin Raszyk, et al.
0

The relational calculus (RC) is a concise, declarative query language. However, existing RC query evaluation approaches are inefficient and often deviate from established algorithms based on finite tables used in database management systems. We devise a new translation of an arbitrary RC query into two safe-range queries, for which the finiteness of the query's evaluation result is guaranteed. Assuming an infinite domain, the two queries have the following meaning: The first is closed and characterizes the original query's relative safety, i.e., whether given a fixed database, the original query evaluates to a finite relation. The second safe-range query is equivalent to the original query, if the latter is relatively safe. We compose our translation with other, more standard ones to ultimately obtain two SQL queries. This allows us to use standard database management systems to evaluate arbitrary RC queries. We show that our translation improves the time complexity over existing approaches, which we also empirically confirm in both realistic and synthetic experiments.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/11/2018

Scripting Relational Database Engine Using Transducer

We allow database user to script a parallel relational database engine w...
research
05/14/2023

QueryBooster: Improving SQL Performance Using Middleware Services for Human-Centered Query Rewriting

SQL query performance is critical in database applications, and query re...
research
08/03/2020

A Dichotomy for the Generalized Model Counting Problem for Unions of Conjunctive Queries

We study the generalized model counting problem, defined as follows: giv...
research
02/22/2022

Understanding Queries by Conditional Instances

A powerful way to understand a complex query is by observing how it oper...
research
04/09/2019

Explaining Wrong Queries Using Small Examples

For testing the correctness of SQL queries, e.g., evaluating student sub...
research
02/25/2023

Computing the Difference of Conjunctive Queries Efficiently

We investigate how to efficiently compute the difference result of two (...
research
10/06/2021

Reconsidering Optimistic Algorithms for Relational DBMS

At DBKDA 2019, we demonstrated that StrongDBMS with simple but rigorous ...

Please sign up or login with your details

Forgot password? Click here to reset