Even if storage was infinite, a data warehouse could not materialize all possible views due to the running time and update requirements. Therefore, it is necessary to estimate quickly, accurately, and reliably the size of views. Many available techniques make particular statistical assumptions and their error can be quite large. Unassuming techniques exist, but typically assume we have independent hashing for which there is no known practical implementation. We adapt an unassuming estimator due to Gibbons and Tirthapura: its theoretical bounds do not make unpractical assumptions. We compare this technique experimentally with stochastic probabilistic counting, LOGLOG probabilistic counting, and multifractal statistical models. Our experiments show that we can reliably and accurately (within 10%, 19 times out 20) estimate view sizes over large data sets (1.5 GB) within minutes, using almost no memory. However, only GIBBONS-TIRTHAPURA provides universally tight estimates irrespective of the size of the view. For large views, probabilistic counting has a small edge in accuracy, whereas the competitive sampling-based method (multifractal) we tested is an order of magnitude faster but can sometimes provide poor estimates (relative error of 100%). In our tests, LOGLOG probabilistic counting is not competitive. Experimental validation on the US Census 1990 data set and on the Transaction Processing Performance (TPC H) data set is provided.
[1]
Matteo Golfarelli,et al.
A methodological framework for data warehouse design
,
1998,
DOLAP '98.
[2]
Jeffrey F. Naughton,et al.
Sampling-Based Estimation of the Number of Distinct Values of an Attribute
,
1995,
VLDB.
[3]
Toby J. Teorey,et al.
A Pareto Model for OLAP View Size Estimation
,
2001,
Inf. Syst. Frontiers.
[4]
Owen Kaser,et al.
Recursive Hashing and One-Pass, One-Hash n-Gram Count Estimation
,
2007,
ArXiv.
[5]
Toby J. Teorey,et al.
A Pareto model for OLAP view size estimation
,
2001,
CASCON.
[6]
P. Flajolet,et al.
Loglog counting of large cardinalities
,
2003
.
[7]
Christos Faloutsos,et al.
Modeling Skewed Distribution Using Multifractals and the '80-20' Law
,
1996,
VLDB.
[8]
Philippe Flajolet,et al.
Probabilistic Counting Algorithms for Data Base Applications
,
1985,
J. Comput. Syst. Sci..
[9]
Srikanta Tirthapura,et al.
Estimating simple functions on the union of data streams
,
2001,
SPAA '01.
[10]
Inderpal Singh Mumick,et al.
Selection of views to materialize in a data warehouse
,
1997,
IEEE Transactions on Knowledge and Data Engineering.