skip to main content
article
Free Access

The effect of join selectives on optimal nesting order

Published:01 March 1987Publication History
Skip Abstract Section

Abstract

A heuristic query optimizer must choose the best way to process an incoming query. This choice is based on comparing the expected cost of many (or all) of the ways that a command might be processed. This expected cost calculation is determined by statistics on the sizes of the relations involved and the selectivities of the operations being performed. Of course, such estimates are subject to error, and in this paper we investigate the sensitivity of the best query plan to errors in the selectivity estimates. We treat the common case of join queries and show that the optimal plan for most queries is very insensitive to selectivity inaccuracies. Hence, there is little reason for a data manager to spend a lot of effort making accurate estimates of join selectivities.

References

  1. [CHRI83] Christodoulakis, S., "Estimating Block Transfers and Join Sizes," Proc. 1983 ACM-SIGMOD Conference on Management of Data, San Jose, CA. May 1983. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. [DATE84] Date, C. J., A Guide to DB2, Addison-Wesley Publishing Co., 1986.Google ScholarGoogle Scholar
  3. [EPST80] Epstein, R. and Stonebraker, M., "Analysis of Distributed Database Processing Strategies," Proc. VLDB Conference, Montreal, Canada. Sept. 1980.Google ScholarGoogle Scholar
  4. [HELD75] Held, G., et. al., "INGRES: A Relational Database System," Proc. 1975 National Computer Conference, Anaheim, CA. June 1975.Google ScholarGoogle Scholar
  5. [KOOI82] Kooi, R. and Frankfurth, D., "Query Optimization in INGRES," IEEE Data-base Engineering, September 1982.Google ScholarGoogle Scholar
  6. [PIAT84] Piatetsky-Shapiro, G. and Connell, C., "Accurate Estimation of the Number of Tuples Satisfying a Condition," Proc. 1984 ACM-SIGMOD Conference on Management of Data, Boston, Mass. June 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. [ROWE83] Rowe, N., "Top Down Statistical Estimation on a Database," Proc. 1983 ACM-SIGMOD Conference on Management of Data, San Jose, CA. May 1983. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. [SELI79] Selinger, P. et. al., "Access Path Selection in a Relational Database Management System," Proc. 1979 ACM-SIGMOD Conference on Management of Data, Boston, Mass., June 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. The effect of join selectives on optimal nesting order

        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

        Full Access

        • Published in

          cover image ACM SIGMOD Record
          ACM SIGMOD Record  Volume 16, Issue 1
          March 1987
          33 pages
          ISSN:0163-5808
          DOI:10.1145/24820
          Issue’s Table of Contents

          Copyright © 1987 Authors

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 1 March 1987

          Check for updates

          Qualifiers

          • article

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader