Extensive Large-Scale Study of Error in Samping-Based Distinct Value Estimators for Databases
Vinay Deolalikar, Hernan Laffitte
备注:
This is the full-length version of a shorter published paper, and includes supplementary material for the published paper. Please cite as "Vinay Deolalikar and Hernan Laffitte: Extensive Large-Scale Study of Error in Samping-Based Distinct Value Estimators for Databases, IEEE Big Data Conference, Washington DC, December 2016."
异值估计问题有许多应用。作为数据库查询优化器的一个关键组件,它也具有很高的商业影响。已经提出了许多不同的价值估计,使用各种统计方法。然而,这些估计所产生的错误的特征是一个悬而未决的问题:现有的分析方法是不够强大的,在大规模的广泛的实证研究不存在。我们进行了广泛的大规模的实证研究,从四个不同的方法,11个不同的价值估计的问题,在家庭的Zipfian分布,其参数模型的现实世界中的应用。我们的研究是第一个\emph{scales to the size of a billion-rows},今天的大型商业数据库中进行操作。这使我们能够描述在现实世界中不同值估计应用中遇到的错误。通过挖掘生成的数据,我们表明,估计误差取决于一个关键的潜在参数-平均均匀类大小-以前没有研究过。这个参数还允许我们发现以前未知的错误模式。重要的是,我们是第一个方法,提供了一个框架,\emph{visualizing the error patterns}在不同的价值估计,促进讨论这个问题,在企业设置。我们的误差特征可以用于不同值估计中的几个问题,如混合估计的设计。这项工作的目的是在从业者和研究人员一样,并解决了经常被双方观众问到的问题。
英文摘要:
The problem of distinct value estimation has many applications. Being a critical component of query optimizers in databases, it also has high commercial impact. Many distinct value estimators have been proposed, using various statistical approaches. However, characterizing the errors incurred by these estimators is an open problem: existing analytical approaches are not powerful enough, and extensive empirical studies at large scale do not exist. We conduct an extensive large-scale empirical study of 11 distinct value estimators from four different approaches to the problem over families of Zipfian distributions whose parameters model real-world applications. Our study is the first that \emph{scales to the size of a billion-rows} that today's large commercial databases have to operate in. This allows us to characterize the error that is encountered in real-world applications of distinct value estimation. By mining the generated data, we show that estimator error depends on a key latent parameter --- the average uniform class size --- that has not been studied previously. This parameter also allows us to unearth error patterns that were previously unknown. Importantly, ours is the first approach that provides a framework for \emph{visualizing the error patterns} in distinct value estimation, facilitating discussion of this problem in enterprise settings. Our characterization of errors can be used for several problems in distinct value estimation, such as the design of hybrid estimators. This work aims at the practitioner and the researcher alike, and addresses questions frequently asked by both audiences.
Consistent and Flexible Selectivity Estimation for High-Dimensional Data
Shenzhen Institute of Computing Sciences, Shenzhen University(深圳大学深圳计算科学研究院);Osaka University(大阪大学);Nagoya University(名古屋大学);Dongguan University of Technology(东莞理工学院);University of New South Wales(新南威尔士大学)