skip to main content
research-article

Enhanced subquery optimizations in Oracle

Published:01 August 2009Publication History
Skip Abstract Section

Abstract

This paper describes enhanced subquery optimizations in Oracle relational database system. It discusses several techniques -- subquery coalescing, subquery removal using window functions, and view elimination for group-by queries. These techniques recognize and remove redundancies in query structures and convert queries into potentially more optimal forms. The paper also discusses novel parallel execution techniques, which have general applicability and are used to improve the scalability of queries that have undergone some of these transformations. It describes a new variant of antijoin for optimizing subqueries involved in the universal quantifier with columns that may have nulls. It then presents performance results of these optimizations, which show significant execution time improvements.

References

  1. W. Kim. "On Optimizing an SQL-Like Nested Query", ACM TODS, September 1982. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. U. Dayal, "Of Nests and Trees: A Unified Approach to Processing Queries that Contain Nested Subqueries, Aggregates, and Quantifiers", Proceedings of the 13th VLDB Conference, Brighton, U.K., 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. M. Muralikrishna, "Improved Unnesting Algorithms for Join Aggregate SQL Queries", Proceedings of the 18th VLDB Conference, Vancouver, Canada, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. H. Pirahesh, J. M. Hellerstein, and W. Hasan, "Extensible Rule Based Query Rewrite Optimizations in Starburst". Proc. of ACM SIGMOD, San Diego, U.S.A., 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. S. Chaudhuri and K. Shim, "Including Group-By in Query Optimization", Proceedings of the 20th VLDB Conference, Santiago, Chile, 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. W. P. Yan and A. P. Larson, "Eager Aggregation and Lazy Aggregation", Proceedings of the 21th VLDB Conference, Zurich, Switzerland, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. A. Witkowski, et al, "Spreadsheets in RDBMS for OLAP", Proceedings of ACM SIGMOD, San Diego, USA, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. R. Ahmed, et al, "Cost-Based Query Transformation in Oracle", Proceedings of the 32nd VLDB Conference, Seoul, S. Korea, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. M. Elhemali, C. Galindo-Legaria, et al, "Execution Strategies for SQL Subqueries", Proceedings of ACM SIGMOD, Beijing, China, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. A. Eisenberg, K. Kulkarni, et al, "SQL: 2003 Has Been Published", SIGMOD Record, March 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. F. Zemke. "Rank, Moving and reporting functions for OLAP," 99/01/22 proposal for ANSI-NCITS.Google ScholarGoogle Scholar
  12. C. Zuzarte et al, "Method for Aggregation Subquery Join Elimination", http://www.freepatentsonline.com/7454416.htmlGoogle ScholarGoogle Scholar
  13. C. Zuzarte, H. Pirahesh, et al, "WinMagic: Subquery Elimination Using Window Aggregation", Proceedings of ACM SIGMOD, San Diego, USA, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. TPC Benchmark H (Decision Support), Standard Specification Rev 2.8, http://tpc.org/tpch/spec/tpch2.8.0.pdfGoogle ScholarGoogle Scholar
  15. TPC-DS Specification Draft, Rev 32, http://www.tpc.org/tpcds/spec/tpcds32.pdfGoogle ScholarGoogle Scholar

Index Terms

  1. Enhanced subquery optimizations in Oracle

          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 Proceedings of the VLDB Endowment
            Proceedings of the VLDB Endowment  Volume 2, Issue 2
            August 2009
            367 pages

            Publisher

            VLDB Endowment

            Publication History

            • Published: 1 August 2009
            Published in pvldb Volume 2, Issue 2

            Qualifiers

            • research-article

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader