skip to main content
article
Free Access

Extending a database system with procedures

Published:01 September 1987Publication History
Skip Abstract Section

Abstract

This paper suggests that more powerful database systems (DBMS) can be built by supporting database procedures as full-fledged database objects. In particular, allowing fields of a database to be a collection of queries in the query language of the system is shown to allow the natural expression of complex data relationships. Moreover, many of the features present in object-oriented systems and semantic data models can be supported by this facility.

In order to implement this construct, extensions to a typical relational query language must be made, and considerable work on the execution engine of the underlying DBMS must be accomplished. This paper reports on the extensions for one particular query language and data manager and then gives performance figures for a prototype implementation. Even though the performance of the prototype is competitive with that of a conventional system, suggestions for improvement are presented.

References

  1. 1 ASTRAHAN, M., BLASGEN, M. W., CHAMBERLIN, D. D., ESWARAN, K. P., GRAY, J. N., GRIFFITHS, P. P., KING, W. F., LORIE, R. A., MCJONES, P. R., MEHL, T. W., PUTZOLU, G. R., TRAIGER, I. L., WADE, B. W., AND WATSON, V. System R: A relational approach to database management. ACM Trans. Database Syst. 1, 2 (June 1976), 97-137. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2 BLAKELEY, J., LARSON, P.-A., AND TOMPA, F.W. Efficiently updating materialized views. In Proceedings of the 1986 ACM-SIGMOD International Conference on Management of Data (Washington, D.C., May 28-30, 1986), ACM, New York, 1986, pp. 61-71. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3 CHENG, J., ET AL. IBM database 2 performance: Design, implementation, and tuning. IBM Syst. J. (Feb. 1984), 189-210.Google ScholarGoogle Scholar
  4. 4 COPELAND, G., AND MAIER, D. Making Smalltalk a database system. In Proceedings of 1984 ACM-SIGMOD International Conference on Management of Data (Boston, Mass., June 18-21, 1984), ACM, New York, 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. 5 DATE, C. Referential integrity. In Proceedings of 7th VLDB Conference (Cannes, France, Sept. 1981). IEEE, New York, 1981, pp. 2-12.Google ScholarGoogle Scholar
  6. 6 DATA BASE TASK GROUP. Report to the CODASYL programming language committee. ACM, New York, Apr. 1971.Google ScholarGoogle Scholar
  7. 7 EPSTEIN, R., AND HAWTHORN, P. Design decisions for the intelligent database machine. In Proceedings of the 1980 National Computer Conference (Anaheim, Calif., May 1980). AFIPS, Arlington, Va., 1980, pp. 237-241.Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. 8 FAGIN, R., NIEVERGELT, J., PIPPINGER, N., AND STRONG, H.R. Extendible hashing: A fast access method for dynamic files. ACM Trans. Database Syst. 4, 3 (Sept. 1979), 315-344. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. 9 HAMMER, M., AND MCLEOD, D. Database description with SDM: A semantic database model. ACM Trans. Database Syst. 6, 3 (Sept. 1981), 351-386. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. 10 HASKINS, R., AND LORIE, R. On Extending the functions of a relational database system. In Proceedings of 1982 ACM-SIGMOD International Conference on Management of Data (Orlando, Fl., June 1982), ACM, New York, 1982. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. 11 HELD, G., ET AL. INGRESmA relational database system. In Proceedings of the 1975 National Computer Conference (Anaheim, Calif., May 1975). AFIPS, Montvale, N.J., 1975, pp. 409-416.Google ScholarGoogle Scholar
  12. 12 KALASH, J. Implementation of a database browser. Memo. M85/22. Electronics Research Laboratory, Univ. of California, Berkeley, May 1985.Google ScholarGoogle Scholar
  13. 13 Kool, R., AND FRANKFURTH, D. Query optimization in INGRES. Database Eng. (Sept. 1982),Google ScholarGoogle Scholar
  14. 14 KUN{}, R., ET AL. Heuristic search in database systems. In Proceedings of the 1st International Conference on Expert Database Systems (Kiawah, S.C., Oct. 1984). Benjamin/Cummings, 1986, pp. 537-548. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. 15 LOR}E, R., AND PLOUFFE, W. Complex objects and their use in design transactions. In Proceedings of Engineering Design Applications Stream of ACM-IEEE Data Base Week (San Jose, Calif., May 1983). IEEE, New York, 1983, pp. 115-121.Google ScholarGoogle Scholar
  16. 16 MYLOUPOULIS, J., BERNSTEIN, P. A., AND WON{}, H. K.T. A language facility for designing database intensive applications. ACM Trans. Database Syst. 5, 2 (June 1980}, 185-207. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. 17 ON{}, J., ET AL. Implementation of data abstraction in the relational database system INGRES. SIGMOD Rec. (Mar. 1984).Google ScholarGoogle Scholar
  18. 18 POWELL, M., AND LINTON, M. Database support for programming environments. In Proceedings of Engineering Design Applications Stream of ACM-IEEE Database Week (San Jose, Calif., May 1983). IEEE, New York, 1983, pp. 63-70.Google ScholarGoogle Scholar
  19. 19 ROWE, L., AND SHOENS, K. A form application development system. In Proceedings of the 1982 ACM-SIGMOD International Conference on Management of Data {Orlando, Fl., June 1982), ACM, New York, 1982. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. 20 RELATIONAL TECHNOLOGY, INC. INGRES Version 5.0 Reference Manual. Relational Technology, Inc., Alameda, Calif., Nov. 1986.Google ScholarGoogle Scholar
  21. 21 SEHNGER, P. Access path selection in a relational database system. In Proceedings of the 1979 A CM-SIGMOD International Conference on Management of Data {Boston, Mass., May 30-June 1, 1979). ACM, New York, 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. 22 SHIPMAN, D. The functional model and the data language Daplex. ACM Trans. Database Syst. 6, 1 (Mar. 1981), 140-173. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. 23 SMITH, J., AND SMITH, D. Database abstractions: Aggregation and generalization. ACM Trans. Database Syst. 2, 2 (June 1977), 105-133. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. 24 SORDt, J. IBM database 2: The query management facility. IBM Syst. J. (Feb. 1984).Google ScholarGoogle Scholar
  25. 25 STONEBRAKER, M. Implementation of views and integrity control by query modification. In Proceedings of the 1975 A CM-SIGMOD International Conference on Management of Data (San Jose, Calif., June 1975), ACM, New York, 1975. Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. 26 STONEBRAKER, M. Object management in POSTGRES using procedures. Memo M86/42. Electronics Research Laboratory, Univ. of California, Berkeley, July 1986.Google ScholarGoogle Scholar
  27. 27 STONEBRAKER, M., WONG, E., KREPS, AND HELD, G. The design and implementation of INGRES. ACM Trans. Database Syst. 1, 3 (Sept. 1976), 189-222. Google ScholarGoogle ScholarDigital LibraryDigital Library
  28. 28 STONEBRAKER, M., El? AL. QUEL as a data type. In Proceedings of the 1984 ACM-SIGMOD International Conference on Management of Data (Boston, Mass., June 18-21, 1984), ACM, New York, 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. 29 WILENSKY, R. The LISP PRIMER. W. W. Norton, New York, 1984.Google ScholarGoogle Scholar
  30. 30 WON{}, E., AND YOUSSEFI, K. Decomposition--A strategy for query processing. ACM Trans. Database Syst. I, 3 (Sept. 1976), 223-241. Google ScholarGoogle ScholarDigital LibraryDigital Library
  31. 31 ZANIOLO, C. The database language GEM. In Proceedings of the 1983 ACM-SIGMOD International Conference on Management of Data (San Jose, Calif., May 1983), ACM, New York, 1983. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Extending a database system with procedures

            Recommendations

            Reviews

            Robert J. Tufts

            In the last few years, a number of authors have pointed out weaknesses of and needed extensions to the relational database model. In this paper, the authors identify many of these and suggest the use of stored procedures within a database field to be a powerful, general purpose solution. In particular, they propose extending the relational model to allow particular fields in the database to contain query language (SQL or QUEL) commands that are executed at run time. The advantage of this proposed extension is that one mechanism can solve a large number of perceived problems and has the potential of even more general applications in the future. Using stored procedures, complex objects such as maps and graphs can be stored in a relational database. Likewise, bi-directional relationships, browsing of icons, sharing of subobjects, referential integrity (relational editing), and semantic data modeling (generalization and aggregation) can all be easily supported. The purpose of the paper is to propose an extension that still retains the “Spartan simplicity” of the relational model while solving many of its inadequacies. The use of stored procedures fulfills this purpose. Stored procedures follow CODASYL DBTG suggestions from 1971 [1] and should work, but at the possible expense of additional relational model response time and security problems. In an effort to evaluate these impacts, test runs were made comparing INGRES against INGRES+, which included the proposed extensions. The results were as expected—full or partial joins were much slower while joins resulting in only a few tuples were faster. As the authors stated it, the INGRES+ results were “competitive.” The paper's strength lies in its well-thought-out implementation of stored queries, while its weakness is that it lacks a discussion of security. Stored queries could conceivably allow a user with limited database access to get to unauthorized parts of the database. The paper is well written, has a good organization, and includes a good set of references. The wording is such that even neophytes to relational technology will be able to understand the discussion. I would strongly recommend this excellent paper to both researchers and DBMS vendors alike. The use of stored queries will probably be a commercially available relational model extension in the near future (Relational Technology, Inc. was holding discussions on its implementation over a year ago).

            Access critical reviews of Computing literature here

            Become a reviewer for Computing Reviews.

            Comments

            Login options

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

            Sign in

            Full Access

            • Published in

              cover image ACM Transactions on Database Systems
              ACM Transactions on Database Systems  Volume 12, Issue 3
              Sept. 1987
              199 pages
              ISSN:0362-5915
              EISSN:1557-4644
              DOI:10.1145/27629
              Issue’s Table of Contents

              Copyright © 1987 ACM

              Publisher

              Association for Computing Machinery

              New York, NY, United States

              Publication History

              • Published: 1 September 1987
              Published in tods Volume 12, Issue 3

              Permissions

              Request permissions about this article.

              Request Permissions

              Check for updates

              Qualifiers

              • article

            PDF Format

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader