Stale view cleaning
Open Access
- 1 August 2015
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the VLDB Endowment
- Vol. 8 (12) , 1370-1381
Abstract
Materialized views (MVs), stored pre-computed results, are widely used to facilitate fast queries on large datasets. When new records arrive at a high rate, it is infeasible to continuously update (maintain) MVs and a common solution is to defer maintenance by batching updates together. Between batches the MVs become increasingly stale with incorrect, missing, and superfluous rows leading to increasingly inaccurate query results. We propose Stale View Cleaning (SVC) which addresses this problem from a data cleaning perspective. In SVC, we efficiently clean a sample of rows from a stale MV, and use the clean sample to estimate aggregate query results. While approximate, the estimated query results reflect the most recent data. As sampling can be sensitive to long-tailed distributions, we further explore an outlier indexing technique to give increased accuracy when the data distributions are skewed. SVC complements existing deferred maintenance approaches by giving accurate and bounded query answers between maintenance. We evaluate our method on a generated dataset from the TPC-D benchmark and a real video distribution application. Experiments confirm our theoretical results: (1) cleaning an MV sample is more efficient than full view maintenance, (2) the estimated results are more accurate than using the stale MV, and (3) SVC is applicable for a wide variety of MVs.Keywords
All Related Versions
This publication has 16 references indexed in Scilit:
- Materialized ViewsFoundations and Trends® in Databases, 2012
- DBToasterProceedings of the VLDB Endowment, 2012
- Synopses for Massive Data: Samples, Histograms, Wavelets, SketchesFoundations and Trends® in Databases, 2011
- Power-Law Distributions in Empirical DataSIAM Review, 2009
- Empirical Evaluation of Hash Functions for PacketID Generation in Sampled Multipoint MeasurementsLecture Notes in Computer Science, 2009
- TestU01ACM Transactions on Mathematical Software, 2007
- Incremental maintenance of aggregate and outerjoin expressionsInformation Systems, 2006
- A Brief History of Generative Models for Power Law and Lognormal DistributionsInternet Mathematics, 2004
- Lineage tracing for general data warehouse transformationsThe VLDB Journal, 2003
- Fast incremental maintenance of approximate histogramsACM Transactions on Database Systems, 2002