skip to main content
article

Bringing order to query optimization

Published:01 June 2002Publication History
Skip Abstract Section

Abstract

A variety of developments combine to highlight the need for respecting order when manipulating relations. For example, new functionality is being added to SQL to support OLAP-style querying in which order is frequently an important aspect. The set- or multiset-based frameworks for query optimization that are currently being taught to database students are increasingly inadequate.This paper presents a foundation for query optimization that extends existing frameworks to also capture ordering. A list-based relational algebra is provided along with three progressively stronger types of algebraic equivalences, concrete query transformation rules that obey the different equivalences, and a procedure for determining which types of transformation rules are applicable for optimizing a query. The exposition follows the style chosen by many textbooks, making it relatively easy to teach this material in continuation of the material covered in the textbooks, and to integrate this material into the textbooks.

References

  1. {Alb91} J. Albert. Algebraic Properties of Bag Data Types. In Proc. VLDB, pp. 211-219 (1991). Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. {CK97} M. J. Carey and D. Kossmann. Processing Top N and Bottom N Queries. Data Engineering Bulletin, 20(3):12-19 (1997).Google ScholarGoogle Scholar
  3. {DGK82} U. Dayal, N. Goodman, and R. H. Katz. An Extended Relational Algebra with Control over Duplicate Elimination. In Proc. PODS, pp. 117-123 (1982). Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. {GMc93} G. Graefe and W. J. McKenna. The Volcano Optimizer Generator: Extensibility and Efficient Search. In Proc. IEEE ICDE, pp. 209-218 (1993). Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. {GUW00} H. Garcia-Molina, J. D. Ullman, and J. Widom. Database System Implementation. Prentice Hall (2000).Google ScholarGoogle Scholar
  6. {IBM} DB2 Universal Database and DB2 Connect for Windows, OS/2 and Unix. Administration Guide. ⟨www-4.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/document.d2w/report?fn=db2v7d0frm3toc.htm⟩, current as of August 2, 2001.Google ScholarGoogle Scholar
  7. {Kie85} W. Kiessling. On Semantic Reefs and Efficient Processing of Correlation Queries with Aggregates. In Proc. VLDB, pp. 241-249 (1985).Google ScholarGoogle Scholar
  8. {Klu82} A. Klug. Equivalence of Relational Algebra and Relational Calculus Query Languages Having Aggregate Functions. JACM, 29(3): 699-717 (1982). Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. {PLH97} H. Pirahesh, T. Y. C. Leung, and W. Hasan. A Rule Engine for Query Transformation in Starburst and IBM DB2 C/S DBMS. In Proc. IEEE ICDE, pp. 391-400 (1997). Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. {Mic} Microsoft SQL Server Product Documentation. ⟨www.microsoft.com/sql/techinfo/productdoc/2000/⟩, current as of July 27, 2001.Google ScholarGoogle Scholar
  11. {OraDev} Oracle8i Application Developer's Guide - Fundamentals. ⟨technet.oracle.com/doc/server.815/a68003/toc.htm⟩, current as of July 27, 2001.Google ScholarGoogle Scholar
  12. {Ric92} J. Richardson. Supporting Lists in a Data Model (A Timely Approach). In Proc. VLDB, pp. 127-138 (1992). Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. {SJS99} G. Slivinskas, C. S. Jensen, and R. T. Snodgrass. Query Plans for Conventional and Temporal Queries Involving Duplicates and Ordering. TIMECENTER TR-49 (1999). ⟨www.cs.auc.dk/TimeCenter⟩, current as of July 27, 2001.Google ScholarGoogle Scholar
  14. {SJS01} G. Slivinskas, C. S. Jensen, and R. T. Snodgrass. A Foundation for Conventional and Temporal Query Optimization Addressing Duplicates and Ordering. IEEE TKDE, 13(1):21-49 (2001). Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. {SLR94} P. Seshadri, M. Livny, and R. Ramakrishnan. Sequence Query Processing. In Proc. ACM SIGMOD, pp. 430-441 (1994). Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. {SLR95} P. Seshadri, M. Livny, and R. Ramakrishnan. SEQ: A Model for Sequence Databases. In Proc. IEEE ICDE, pp. 232-239 (1994). Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Bringing order to query optimization
        Index terms have been assigned to the content through auto-classification.

        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 31, Issue 2
          June 2002
          112 pages
          ISSN:0163-5808
          DOI:10.1145/565117
          Issue’s Table of Contents

          Copyright © 2002 Authors

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 1 June 2002

          Check for updates

          Qualifiers

          • article

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader