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

When can we trust progress estimators for SQL queries?

Published:14 June 2005Publication History

ABSTRACT

The problem of estimating progress for long-running queries has recently been introduced. We analyze the characteristics of the progress estimation problem, from the perspective of providing robust, worst-case guarantees. Our first result is that in the worst case, no progress estimation algorithm can yield anything even moderately better than the trivial guarantee that identifies the progress as lying between 0% and 100%. In such cases, we introduce an estimator that can optimally bound the error. However, we show that in many "good" scenarios, it is possible to design effective progress estimators with small error bounds. We then demonstrate empirically that these "good" scenarios are common in practice and discuss possible ways of combining the estimators.

References

  1. S. Acharya, P. Gibbons, V. Poosala, and S. Ramaswamy. Join synopses for approximate query answering. In SIGMOD, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. N. Bruno and S. Chaudhuri. Statistics on query expressions. In SIGMOD, 2002.Google ScholarGoogle Scholar
  3. S. Chaudhuri, R. Motwani, and V. Narasayya. On random sampling over joins. In SIGMOD, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. S. Chaudhuri and V. Narasayya. The sky server database. http://skyserver.sdss.org.Google ScholarGoogle Scholar
  5. S. Chaudhuri, V. Narasayya, and R. Ramamurthy. Estimating progress of long-running queries. In SIGMOD, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. P. Haas. Large-sample and deterministic confidence intervals for online aggregation. In SSDBM, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. P. Haas and J. Hellerstein. Ripple joins for online aggregation. In SIGMOD, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. P. Haas, J. Naughton, S. Seshadri, and A. Swami. Selectivity and cost estimation for joins based on random sampling. Journal of Computer and System Sciences, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. J. Hellerstein, P. Haas, and H. Wang. Online aggregation. In SIGMOD, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Y. Ioannadis. Query optimization. ACM Computing Surveys, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Y. E. Ioannidis and S. Christodoulakis. On the propagation of errors in the size of join results. In SIGMOD, 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. N. Kabra and D. DeWitt. Efficient mid-query re-optimization of sub-optimal query execution plans. In SIGMOD, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. G. Luo, J. Naughton, C. Ellmann, and M. Watzke. Towards a progress indicator for database queries. In SIGMOD, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. G. Luo, J. Naughton, C. Ellmann, and M. Watzke. Increasing the accuracy and coverage of SQL progress indicators. In ICDE, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. V. Markl, V. Raman, D. E. Simmen, G. M. Lohman, and H. Pirahesh. Robust query processing through progressive optimization. In SIGMOD, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. V. Poosala and Y. E. Ioannidis. Balancing histogram optimality and practicality for query result size estimation. In SIGMOD, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. The TPCH Benchmark. http://www.tpc.org.Google ScholarGoogle Scholar
  18. Program for TPC-D Data Generation with Skew. ftp://ftp.research.microsoft.com/users/viveknar/tpcdskew.Google ScholarGoogle Scholar
  1. When can we trust progress estimators for SQL queries?

      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 '05: Proceedings of the 2005 ACM SIGMOD international conference on Management of data
        June 2005
        990 pages
        ISBN:1595930604
        DOI:10.1145/1066157
        • Conference Chair:
        • Fatma Ozcan

        Copyright © 2005 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: 14 June 2005

        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