Cardinality estimation using sample views with quality assurance
Authors:
Open Access
- 11 June 2007
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 175-186
Abstract
Accurate cardinality estimation is critically important to high-quality query optimization. It is well known that conventional cardinality estimation based on histograms or similar statistics may produce extremely poor estimates in a variety of situations, for example, queries with complex predicates, correlation among columns, or predicates containing user-defined functions. In this paper, we propose a new, general cardinality estimation technique that combines random sampling and materialized view technology to produce accurate estimates even in these situations. As a major innovation, we exploit feedback information from query execution and process control techniques to assure that estimates remain statistically valid when the underlying data changes. Experimental results based on a prototype implementation in Microsoft SQL Server demonstrate the practicality of the approach and illustrate the dramatic effects improved cardinality estimates may have.Keywords
This publication has 18 references indexed in Scilit:
- Robust query processing through progressive optimization2004
- A bi-level Bernoulli scheme for database sampling2004
- Learning table access cardinalities with LEO2002
- Interval Estimation for a Binomial ProportionStatistical Science, 2001
- Towards estimation error guarantees for distinct values2000
- Estimating the Number of Classes in a Finite PopulationJournal of the American Statistical Association, 1998
- Estimating the Number of Classes via Sample CoverageJournal of the American Statistical Association, 1992
- Robust estimation in truncated discrete distributions with application to capture-recapture experimentsJournal of Statistical Planning and Inference, 1988
- Handbook of Mathematical FunctionsAmerican Journal of Physics, 1966
- Probable Inference, the Law of Succession, and Statistical InferenceJournal of the American Statistical Association, 1927