Stale View Cleaning:从陈旧的物化视图中获得新的答案
Stale View Cleaning: Getting Fresh Answers from Stale Materialized Views
摘要:
物化视图(Materialized Views,MV)是一种存储预计算结果的视图,被广泛应用于大型数据集的快速查询。当新记录以高速率到达时,连续更新(维护)MV是不可行的,常见的解决方案是通过同时更新来推迟维护。在批处理之间,MV变得越来越陈旧,错误、缺失和多余的行导致查询结果越来越不准确。我们提出了Stale View Cleaning(SVC),它从数据清理的角度解决了这个问题。在SVC中,我们有效地从陈旧的MV中清理行的样本,并使用干净的样本来估计聚合查询结果。虽然是近似的,但估计的查询结果反映了最新的数据。由于抽样对长尾分布敏感,我们进一步探索了一种离群值索引技术,以便在数据分布偏斜时提高准确性。SVC通过在维护之间提供准确和有界的查询答案来补充现有的延迟维护方法。我们从TPC-D基准和一个真正的视频分发应用程序生成的数据集上评估我们的方法。实验证实了我们的理论结果:(1)清理MV样本比全视图维护更有效,(2)估计结果比使用陈旧MV更准确,以及(3)SVC适用于各种MV。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。