Towards an efficient evaluation of general queries: quantifier and disjunction processing revisited
- 1 June 1989
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGMOD Record
- Vol. 18 (2), 193-204
- https://doi.org/10.1145/66926.66944
Abstract
Database applications often require to evaluate queries containing quantifiers or disjunctions, e.g., for handling general integrity constraints. Existing efficient methods for processing quantifiers depart from the relational model as they rely on non-algebraic procedures. Looking at quantified query evaluation from a new angle, we propose an approach to process quantifiers that makes use of relational algebra operators only. Our approach performs in two phases. The first phase normalizes the queries producing a canonical form. This form permits to improve the translation into relational algebra performed during the second phase. The improved translation relies on a new operator - the complement-join - that generalizes the set difference, on algebraic expressions of universal quantifiers that avoid the expensive division operator in many cases, and on a special processing of disjunctions by means of constrained outer-joins. Our method achieves an efficiency at least comparable with that of previous proposals, better in most cases. Furthermore, it is considerably simpler to implement as it completely relies on relational data structures and operators.Keywords
This publication has 14 references indexed in Scilit:
- Safety and correct translation of relational calculus formulasPublished by Association for Computing Machinery (ACM) ,1987
- Range nestingPublished by Association for Computing Machinery (ACM) ,1983
- Query processing strategies in the PASCAL/R relational database management systemPublished by Association for Computing Machinery (ACM) ,1982
- The functional data model and the data languages DAPLEXACM Transactions on Database Systems, 1981
- Confluent Reductions: Abstract Properties and Applications to Term Rewriting SystemsJournal of the ACM, 1980
- Horn clauses and database dependencies (Extended Abstract)Published by Association for Computing Machinery (ACM) ,1980
- Algorithm = logic + controlCommunications of the ACM, 1979
- Optimization of query evaluation algorithmsACM Transactions on Database Systems, 1979
- Generalized joinsACM SIGMOD Record, 1976
- Optimizing the performance of a relational algebra database interfaceCommunications of the ACM, 1975