skip to main content
10.1145/1007568.1007591acmconferencesArticle/Chapter ViewAbstractPublication PagesmodConference Proceedingsconference-collections
Article

Optimization of query streams using semantic prefetching

Published:13 June 2004Publication History

ABSTRACT

Streams of relational queries submitted by client applications to database servers contain patterns that can be used to predict future requests. We present the Scalpel system, which detects these patterns and optimizes request streams using context-based predictions of future requests. Scalpel uses its predictions to provide a form of semantic prefetching, which involves combining a predicted series of requests into a single request that can be issued immediately. Scalpel's semantic prefetching reduces not only the latency experienced by the application but also the total cost of query evaluation. We describe how Scalpel learns to predict optimizable request patterns by observing the application's request stream during a training phase. We also describe the types of query pattern rewrites that Scalpel's cost-based optimizer considers. Finally, we present empirical results that show the costs and benefits of Scalpel's optimizations.

References

  1. P. A. Bernstein, S. Pal, and D. Shutt. Context-based prefetch for implementing objects on relations. In VLDB, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. L. Fegaras and D. Maier. Optimizing object queries using an effective calculus. TODS, 25(4), 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. M. F. Fernández, A. Morishima, and D. Suciu. Efficient evaluation of XML middle-ware queries. In SIGMOD, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. D. Florescu, A. Y. Levy, D. Suciu, and K. Yagoub. Optimization of run-time management of data intensive web-sites. In VLDB, pages 627--638, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. International Standards Organization. Database language SQL---Part 2: Foundation (SQL / Foundation). ISO/IEC 9075-2:1999, Sept. 1999.Google ScholarGoogle Scholar
  6. T. Mayr and P. Seshadri. Client-site query extensions. In SIGMOD, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. T. K. Sellis. Multiple-query optimization. TODS, 13(1):23--52, 1988. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. P. Seshadri, H. Pirahesh, and T. Y. C. Leung. Complex query decorrelation. In ICDE, Feb. 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. J. Shanmugasundaram, E. J. Shekita, R. Barr, M. J. Carey, B. G. Lindsay, H. Pirahesh, and B. Reinwald. Efficiently publishing relational data as XML documents. VLDB Journal, 10(2--3), 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  1. Optimization of query streams using semantic prefetching

      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
        SIGMOD '04: Proceedings of the 2004 ACM SIGMOD international conference on Management of data
        June 2004
        988 pages
        ISBN:1581138598
        DOI:10.1145/1007568

        Copyright © 2004 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: 13 June 2004

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • Article

        Acceptance Rates

        Overall Acceptance Rate785of4,003submissions,20%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader