skip to main content
10.1145/137097.137869acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
Article
Free Access

Containment and minimization of positive conjunctive queries in OODB's

Published:01 July 1992Publication History

ABSTRACT

With the availability of high-level declarative query languages in an object-oriented database system (OODB), the burden of choosing an efficient execution plan for a query is transferred from the user to the database 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 propose a class of queries called conjunctive queries for OODB's. A conjunctive query can be expressed as an equivalent union of queries in a special form called terminal conjunctive queries. We first characterize the containment, and hence equivalence, conditions for the class of terminal conjunctive queries. We then study a subclass of conjunctive queries called positive conjunctive queries. We characterize the containment and equivalence conditions, as well as derive an algorithm for finding an exact minimization for the class of positive conjunctive queries. The equivalent minimized query is expressed as a union of terminal positive conjunctive queries with the property that the variable search space is minimal among all the unions of postivie conjunctive queries.

References

  1. 1.Abiteboul, S. and Beeri, C., "On the Power of Languages for the Manipulation of Complex Objects," Technical Report 846, INRIA, May 1988.Google ScholarGoogle Scholar
  2. 2.Abiteboul, S. and Kanellakis, P., "Object Identity as a Query Language Primitive," Proceedzngs of 1989 A CM SIGMOD, Portland, Oregon, pp. 159-173. Also appears as Technical Report 1022, INRIA, April 1989. Google ScholarGoogle Scholar
  3. 3.Aho, A.V., Sagiv, Y. and Ullman, J.D., "Equivalence of Relational Expressions," SIAM J. of Computing 8(2), 1979, pp. 218-246.Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. 4.Bancilhon, F., "Object-Oriented Database Systems," Proceedings of the 7th A CM Symposium on Principles of Database Systems, Austin, Texas, 1988, pp. 152-162. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. 5.Bancilhon, F., Cluet, S. and Delobel, C., "A Query Language for the 02 Object-Oriented Database System," Proceedings of the 2th International Workshop on Database Programming Languages (Hull, R., Morrison, R. and Stemple, D., Eds.), Morgan Kaufmann Publishers Inc., San Mateo, Cal., 1990, pp. 122-138. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. 6.Banerjee, J., Kim, W., and Kim, K.C., "Queries in Object-Oriented Databases," Proceedings of the #th International Conference on Data Engineering, Feb. 1988, pp. 31-38. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. 7.Beeri, C. and Kornatzky, Y, "Algebraic Optimization of Object-Oriented Query Languages," Proceedings of the 3th International Conference on Database Theory, Paris, France, Lecture Notes in Computer Science 470, December 1990, Springer-Verlag, pp. 72-88. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. 8.Borgida, A. "Type Systems for Querying Class Hierarchies with Non Strict Inheritance" Proceedings of the 8th A CM Sympos,um on Principles of Database Systems, Philadelphia, Penn- #ylvanla, 1989, pp. 394-401. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. 9.Carey, M.J., DeWitt, D.J. and Vandenberg, S.L., "A Data Model and Query Language for EXODUS," Proceedings of the ACM SIGMOD, Chicago, 1988, pp. 413-423. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. 10.Chan, E.P.F., "Testing Satisfiability of a Class of Object-Oriented Conjunctive Queries," Department of Computer Science, University of Waterloo, Technical Report, 1992.Google ScholarGoogle Scholar
  11. 11.Chandra, A. and Merlin, P.M., "Optimal Implementation of Conjunctive Queries in Relational Databases," Proceedings of the 9th A CM Symposium on Theory of Computing, 1977, pp. 77-90. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. 12.Cluet, S., Delobel, C., Lecluse, C. and Richard, P., "Reloop, an Algebra Based Query Language," Proceedings of the 1st International Conference on Deductive and Object-Oriented Databases (Kim. W., Nicolas, J-M and Nishio, S., Eds), Kyoto, Japan, December 1989, pp. 294- 313.Google ScholarGoogle Scholar
  13. 13.Codd, E.F., "Extending the Data Base Relational Model to Capture More Meaning," A CM Transactions on Database Systems, #(#), December 1979, pp. 397-434. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. 14.Fisher, D.H., Beech, D., Care, H.P., Chow, E.C., Connors, T., Davis, J.W., Derrette, N., Hoch, C.G., Kent, W., Lyngbaek, P., Mahbod, B., Neimat, M.A., Ryan, T.A., and Shah, M.C., "IRIS" An Object-Oriented Database Management System," A CM Transactzons on Office Informat,on Systems, 1(5), January 1987, pp. 48- 69.Google ScholarGoogle Scholar
  15. 15.Graefe, G and Maier, D., "Query Optimization in Object-Oriented Database Systesm: A Prospectus," Advances in Object-Oriented Database Systems (K.R. Dittrich, Ed.), Lecture Notes in Computer Science 334, 1988, Springer- Verlag, pp. 358-362. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. 16.Hull, R., "A Survey of Theoretical Research on Typed Complex Database Objects," Dalabases (J. Paredaens, Ed.), Academic Press, London, UK., 1987, pp. 193-256. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. 17.Hull, R. and Yoshikawa, M., "ILOG" Declarative Creation and Manipulation of Object Identifiers (Extended Abstract)," Proceedings of 16th lurernational Conference on Very Large Data Bases, Morgan Kaufmann, Los Altos, CA, 1990, pp. 455-468. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. 18.Hull, R. and Yo#hikawa, M., "On the Equivalence of Database Restructurings Involving Object Identifiers (Extended Abstract)," Proceedings of the l Oth A CM Symposium on Prznczples of Dalabase Systems, Denver, Colorado, 1991, pp. 328-340. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. 19.Kifer, M., Lausen, G. and Wu, J., "Logical Foundations of Object-Oriented and Frame-based Languages," Technical Report 90/14 (revised), SUNY at Stony Brook, June 1990. To appear in JA CM.Google ScholarGoogle Scholar
  20. 20.Kim, W., "A Model of Queries for Object- Oriented Databases," Proceedzngs of the 15th International Conference on Very Large Data Bases (Apers &# Wiederhold Eds), August 1989, Amsterdam, the Netherlands, Morgan Kauffman, CA. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. 21.Kim, W., Introduction lo Object-Omented Databases, MIT Press, Cambridge, Massachusetts, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. 22.Korth, H.F., "Optimization of Object-Retreival Query," Advances in Object-Oriented Database Systems (K.R. Dittrich, Ed.) Lecture Notes in Computer Science 334, 1988, Springer-Verlag, pp. 352-357. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. 23.Lamb, C., Landis, G., Orenstein, J. and Weinfeb, D., "The ObjectStore Database System," CACM 34(10), October 1991, pp. 50-63. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. 24.Lecluse, C., Richard, P., "Manipulation of Structured Values in Object-Oriented Database System," Proceedings of #he 2th International Workshop on Database Programming Languages (Hull, R., Morrison, R. and Stemple, D., Eds.), Morgan Kaufmann Publishers Inc., San Mateo, Cal., 1990, pp. 113-121. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. 25.Maier, D., Stein, J.C., Otis, A. and Purdy, A., "Development of an Object-Oriented DBMS," Proceedings of OOPSLA '86, Portland, Oregan, Sept. 1986, pp. 472-482, ACM, New York. Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. 26.Ontos Object Database Programmer's Guide, Ontologic, Inc., Burlington, MA, 1989.Google ScholarGoogle Scholar
  27. 27.The 02 Programmer Manual, 02 Technology, 1991.Google ScholarGoogle Scholar
  28. 28.Osborn, S.L., "Identity, Equality and Query Optimization," Advances in Object-Omcnted Database Systems (K.R. Dittrich, Ed.), Lecture Notes in Computer Science 334, 1988, Springer- Verlag, pp. 346-351. Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. 29.Sagiv, Y. and Yannakakis, M., "Equivalence Among Relational Expressions with the Union and Difference Operators," JACM 27(#), October 1980, pp. 633-655. Google ScholarGoogle ScholarDigital LibraryDigital Library
  30. 30.Shaw, G. and Zdonik, S., "OO queries: Equivalence and Optimization," Proceedings of #he 1st International Conference on Deductive and Object-Omented Databases, (Kim. W., Nicolas, J-M and Nishio, S., Eds), Kyoto, japan, December 1989, pp. 264-278.Google ScholarGoogle Scholar
  31. 31.Shaw, G.M. and Zdonik, S.B., "An Object- Oriented Query Algebra," Proceedings of the 2th Internal,onal Workshop on Database Programming Languages, (Hull, R., Morrison, R. and Stemple, D., Eds.), Morgan Kaufmann Publishers Inc., San Mateo, Cal., 1990, pp. 103-112. Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. 32.Ullman, J.D., "Database Theory-Past and Future," Proceedings of the 5th A CM Symposium on Principles of Database Systems, San Diego, CA, 1987, pp.l-10. Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. 33.Ullman, J.D., Princzples of Database and Knowledge-base Systems, Vol. I, Computer Science Press, l#ockville, Maryland, 1988. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Containment and minimization of positive conjunctive queries in OODB's

            Recommendations

            Comments

            Login options

            Check if you have access through your login credentials or your institution to get full access on this article.

            Sign in
            • Published in

              cover image ACM Conferences
              PODS '92: Proceedings of the eleventh ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems
              July 1992
              392 pages
              ISBN:0897915194
              DOI:10.1145/137097

              Copyright © 1992 ACM

              Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

              Publisher

              Association for Computing Machinery

              New York, NY, United States

              Publication History

              • Published: 1 July 1992

              Permissions

              Request permissions about this article.

              Request Permissions

              Check for updates

              Qualifiers

              • Article

              Acceptance Rates

              Overall Acceptance Rate642of2,707submissions,24%

            PDF Format

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader