Skip to main content
QUICK REVIEW

[Paper Review] Unasssuming View-Size Estimation Techniques in OLAP

Kamel Aouiche, Daniel Lemire|ArXiv.org|Mar 12, 2007
Advanced Database Systems and QueriesComputer Science8 references4 citations
TL;DR

This paper evaluates unassuming view-size estimation techniques—Gibbons-Tirthapura, probabilistic counting, LogLog, and multifractal modeling—for OLAP data warehouses. It demonstrates that Gibbons-Tirthapura provides stable, theoretically bounded estimates across all view sizes, while probabilistic counting is more accurate for large views, LogLog underperforms, and the multifractal method is fastest but less precise.

ABSTRACT

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.

Motivation & Objective

  • To evaluate the accuracy and performance of unassuming view-size estimation techniques in OLAP data warehouses.
  • To compare state-of-the-art unassuming estimators—Gibbons-Tirthapura, probabilistic counting, LogLog, and multifractal modeling—under real-world data warehouse workloads.
  • To assess whether theoretical bounds on estimation error hold in practice, especially for small view sizes.
  • To determine the trade-offs between memory usage, speed, and accuracy across different estimation techniques.
  • To provide empirical guidance for selecting view-size estimation methods in materialized view selection heuristics.

Proposed method

  • Adapts the Gibbons-Tirthapura estimator, which uses 3-wise independent hashing to provide unassuming, bounded error estimates with theoretical guarantees.
  • Implements probabilistic counting and LogLog probabilistic counting, both relying on hash-based distinct counting with memory parameter M to control accuracy.
  • Employs a multifractal model based on sample statistics (distinct count F₀, max frequency m_max, sample size N′) to estimate view size without distributional assumptions.
  • Uses a standardized test protocol: sample data at various ratios (p ∈ {0.1%, 0.3%, 0.5%, 0.7%}), estimate view sizes using each technique, log time and estimate, and compare against exact sizes.
  • Measures 95th-percentile error over 20 runs to evaluate reliability and theoretical bound adherence.
  • Evaluates performance on both real (US Census 1990) and synthetic (TPC-H) data sets to ensure generalizability.

Experimental results

Research questions

  • RQ1Do the theoretical error bounds of unassuming estimators like Gibbons-Tirthapura, probabilistic counting, and LogLog hold in practice across diverse view sizes?
  • RQ2How does the accuracy of each estimator vary with view size, especially for small views where skew effects are pronounced?
  • RQ3What is the relative performance (speed and accuracy) trade-off between Gibbons-Tirthapura, probabilistic counting, LogLog, and the multifractal sampling-based method?
  • RQ4Can the multifractal model provide a practical, fast alternative to full-scan estimators despite its statistical assumptions?
  • RQ5How does memory usage (M) affect the accuracy of each technique, and is the 1/√M accuracy scaling observed in theory reflected in practice?

Key findings

  • Gibbons-Tirthapura consistently provides bounded, stable estimates across all view sizes, with its theoretical 95th-percentile error bound (19/20 reliability) verified experimentally.
  • For small view sizes, probabilistic counting and LogLog exhibit relative errors exceeding 100%, indicating poor reliability in critical cases.
  • The multifractal estimator is approximately 100× faster than the other methods, completing estimation in ~2 seconds, but delivers coarser estimates with less accuracy.
  • Probabilistic counting outperforms LogLog in both accuracy and speed, making LogLog not recommended despite its theoretical appeal.
  • Estimation time is dominated by streaming and hashing; Gibbons-Tirthapura, probabilistic counting, and LogLog each take ~5–7 minutes on the US Census 1990 data set.
  • Memory usage for all estimators is minimal (a few MiB), making them practical for data warehouse environments despite theoretical memory parameter M.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.