[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1145/2304510.2304526acmconferencesArticle/Chapter ViewAbstractPublication PagesmodConference Proceedingsconference-collections
research-article

Testing cardinality estimation models in SQL server

Published: 21 May 2012 Publication History

Abstract

Reliable query optimization greatly depends on accurate Cardinality Estimation (CE), which is inherently inexact as it relies on statistical information. In commercial database systems, cardinality estimation models are sophisticated components that over years of development can become very complex. The code that implements cardinality estimation models, like most complex software systems that handle a large space of possible inputs and conditions, can deviate from its original architecture and design points over time. Hence, it is often necessary to refactor and redesign the entire system to accommodate new inputs and conditions, and also to reflect existing ones in a more intentional way. In this paper, we describe such an exercise: the replacement and validation of a new cardinality estimation model in Microsoft SQL Server. We describe the motivation behind this change, and provide a high level sketch of the empirical methods used to ensure that the new cardinality estimation model satisfies its goals while minimizing the potential risk of plan regressions for existing customers.

References

[1]
L. Giakoumakis and C. Galindo-Legaria. Testing SQL Server's Query Optimizer: Challenges, Techniques and Experiences. IEEE Data Engineering Bulletin, 31(1), 2008.
[2]
H. Bati, L. Giakoumakis., S. Herbert, and A. Surna. A genetic approach for random testing of database systems. In Proceedings of the 33rd international conference on Very large data bases (VLDB '07). VLDB Endowment 1243--1251.
[3]
Y. Ioannidis and V. Poosala. Histogram-Based Solutions to Diverse Database Estimation Problems. EE Data Eng. Bull.}. 18, 3 (1993), 10--18.
[4]
I. Jose. Ascending Keys and Auto Quick Corrected Statistics, Ian Jose's Weblog, http://blogs.msdn.com/b/ianjo/archive/2006/04/24/582227.aspx, 2006.
[5]
M. Zait, A. Lee, K. Yagoub, R. Sahani, H. Casaletto, and L. Kumar. Testing on a budget: integrating e-business certification into the Oracle DBMS testing. In Proceedings of the Second International Workshop on Testing Database Systems (DBTest '09). ACM, New York, NY, USA, Article 2
[6]
N. Reddy and. J. Haritsa. Analyzing plan diagrams of database query optimizers. In Proceedings of the 31st international conference on Very large data bases (VLDB '05). VLDB Endowment 1228--1239.
[7]
T. Grabs, S. Herbert, and X. Zhang. Testing challenges for extending SQL server's query processor: a case study. In Proceedings of the 1st international workshop on Testing database systems (DBTest '08). ACM, New York, NY, USA, Article 2
[8]
P. Selinger, M. Astrahan, D. Chamberlin, R. Lorie, T. Price. Access path selection in a relational database management system. In Proceedings of ACM-SIGMOD International Conference on Management of Data, pages 23--34, 1979.
[9]
Y. Ioannidis. The history of histograms (abridged). In Proceedings of VLDB Conference, 2003.
[10]
C. Estan and J. Naughton. End-biased samples for join cardinality estimation. In Proceedings of the 22nd International Conference on Data Engineering, 2006.
[11]
A. Swami and K. B. Schiefer. On the estimation of join result sizes. In Proceedings of the 4th international conference on extending database technology, EDBT 1994.

Cited By

View all
  • (2018)Query optimization through the looking glass, and what we found running the Join Order BenchmarkThe VLDB Journal — The International Journal on Very Large Data Bases10.1007/s00778-017-0480-727:5(643-668)Online publication date: 1-Oct-2018
  • (2016)OptMarkProceedings of the 25th ACM International on Conference on Information and Knowledge Management10.1145/2983323.2983658(2155-2160)Online publication date: 24-Oct-2016
  • (2015)How good are query optimizers, really?Proceedings of the VLDB Endowment10.14778/2850583.28505949:3(204-215)Online publication date: 1-Nov-2015

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
DBTest '12: Proceedings of the Fifth International Workshop on Testing Database Systems
May 2012
75 pages
ISBN:9781450314299
DOI:10.1145/2304510
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]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 21 May 2012

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. cardinality estimation
  2. experimental methodology
  3. query optimization
  4. software quality

Qualifiers

  • Research-article

Conference

SIGMOD/PODS '12
Sponsor:

Acceptance Rates

DBTest '12 Paper Acceptance Rate 12 of 26 submissions, 46%;
Overall Acceptance Rate 31 of 56 submissions, 55%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)22
  • Downloads (Last 6 weeks)0
Reflects downloads up to 23 Dec 2024

Other Metrics

Citations

Cited By

View all
  • (2018)Query optimization through the looking glass, and what we found running the Join Order BenchmarkThe VLDB Journal — The International Journal on Very Large Data Bases10.1007/s00778-017-0480-727:5(643-668)Online publication date: 1-Oct-2018
  • (2016)OptMarkProceedings of the 25th ACM International on Conference on Information and Knowledge Management10.1145/2983323.2983658(2155-2160)Online publication date: 24-Oct-2016
  • (2015)How good are query optimizers, really?Proceedings of the VLDB Endowment10.14778/2850583.28505949:3(204-215)Online publication date: 1-Nov-2015

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media