Efficient Evaluation of Arbitrary Relational Calculus Queries
From MaRDI portal
Publication:6137874
DOI10.46298/LMCS-19(4:38)2023arXiv2210.09964MaRDI QIDQ6137874FDOQ6137874
Authors: Martin Raszyk, David Basin, Srđan Krstić, Dmitriy Traytel
Publication date: 16 January 2024
Published in: Logical Methods in Computer Science (Search for Journal in Brave)
Abstract: 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.
Full work available at URL: https://arxiv.org/abs/2210.09964
Cites Work
- Title not available (Why is that?)
- Title not available (Why is that?)
- Safety, domain independence and translation of complex value database queries
- The Recursive Unsolvability of the Decision Problem for the Class of Definite Formulas
- Elements of finite model theory.
- The decision problem for database dependencies
- Title not available (Why is that?)
- Title not available (Why is that?)
- Relational queries over interpreted structures
- Domain independence and the relational calculus
- Introduction to constraint databases
- Monitoring metric first-order temporal properties
- Finite presentations of infinite structures: Automata and interpretations
This page was built for publication: Efficient Evaluation of Arbitrary Relational Calculus Queries
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q6137874)