Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Fast algorithms for Universal quantification in large databases

Journal Article · · ACM Transactions on Database Systems
Universal quantification is not supported directly in most database systems despite the fact that it adds significant power to a system`s query processing and inference capabilities, in particular for the analysis of many-to-many relationships and of set-valued attributes. One of the main reasons for this omission has been that universal quantification algorithms and their performance have not been explored for large databases. In this article, we describe and compare three known algorithms and one recently proposed algorithm for relational division, the algebra operator that embodies universal quantification. For each algorithm, we investigate the performance effects of explicit duplicate removal and referential integrity enforcement, variants for inputs larger than memory, and parallel execution strategies. Analytical and experimental performance comparisons illustrate the substantial differences among the algorithms. Moreover, comparisons demonstrate that the recently proposed division algorithm evaluates a universal quantification predicate over two relations as fast as hash (semi-) join evaluates an existential quantification predicate over the same relations. Thus, existential and universal quantification can be supported with equal efficiency by adding the recently proposed algorithm to a query evaluation system. A second result of our study is that universal quantification should be expressed directly in a database query language because most query optimizers do not recognize the rather indirect formulations available in SQL as relational division, and therefore produce very poor evaluation plans for many universal quantification queries. 32 refs., 18 figs.
OSTI ID:
273029
Journal Information:
ACM Transactions on Database Systems, Journal Name: ACM Transactions on Database Systems Journal Issue: 2 Vol. 20; ISSN ATDSD3; ISSN 0362-5915
Country of Publication:
United States
Language:
English

Similar Records

Implementing Graph Pattern Queries on a Relational Database
Technical Report · Tue Dec 25 23:00:00 EST 2007 · OSTI ID:924192

Response time analysis of multiprocessor computers for database support
Journal Article · Wed Feb 29 23:00:00 EST 1984 · ACM Trans. Database Syst.; (United States) · OSTI ID:6331304

Optimization of nested SQL queries revisited
Conference · Tue Mar 31 23:00:00 EST 1987 · OSTI ID:6470730