Containment and Optimization of Object-Preserving Conjunctive Queries
Authors:
- Edward P. F. ChanECEdward P. F. Chan
- Ron van der MeydenRMRon van der Meyden
- 1 January 2000
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Computing
- Vol. 29 (4) , 1371-1400
Abstract
In the optimization of queries in an object-oriented database (OODB) system, a natural first step is to use the typing constraints imposed by the schema to transform a query into an equivalent one that logically accesses a minimal set of objects. We study a class of queries for OODBs called conjunctive queries. Variables in a conjunctive query range over heterogeneous sets of objects. Consequently, a conjunctive query is equivalent to a union of conjunctive queries of a special kind, called terminal conjunctive queries. Testing containment is a necessary step in solving the equivalence and minimization problems. We first characterize the containment and minimization conditions for the class of terminal conjunctive queries. We then characterize containment for the class of all conjunctive queries and derive an optimization algorithm for this class. The equivalent optimal query produced is expressed as a union of terminal conjunctive queries, which has the property that the number of variables as well as their search spaces are minimal among all unions of terminal conjunctive queries. Finally, we investigate the complexity of the containment problem. We show that it is complete in $\Pi^{p}_{2}$.
Keywords
This publication has 23 references indexed in Scilit:
- Testing satisfiability of a class of object-oriented conjunctive queriesTheoretical Computer Science, 1994
- The ObjectStore database systemCommunications of the ACM, 1991
- Updatable views in object-oriented databases1991
- Optimization of nonrecursive queries in OODBsLecture Notes in Computer Science, 1991
- Queries and query processing in object-oriented database systemsACM Transactions on Information Systems, 1990
- Algebraic optimization of object-oriented query languages1990
- Equivalences Among Relational Expressions with the Union and Difference OperatorsJournal of the ACM, 1980
- Equivalences among Relational ExpressionsSIAM Journal on Computing, 1979
- Complete sets and the polynomial-time hierarchyTheoretical Computer Science, 1976
- The polynomial-time hierarchyTheoretical Computer Science, 1976