arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1101.5805cs.DBcs.DScs.LG
收藏

抽样估计的VC维与选择性

The VC-Dimension of Queries and Selectivity Estimation Through Sampling

Brown University(布朗大学)

Matteo Riondato, Mert Akdere, Ugur Cetintemel, Stanley B. Zdonik, Eli Upfal

摘要:

我们开发了一种基于Vapnik-Chervonenkis维度统计概念的新方法来评估SQL查询的选择性(输出基数)-这是优化大规模数据库和数据挖掘操作执行的关键一步。这项工作的主要理论贡献,这是独立的利益,是一个明确的约束VC维的范围空间定义的所有可能的结果的集合(类)的查询。我们证明了VC维是一个函数的最大数量的布尔运算的选择谓词和选择和连接操作的最大数量的任何个人查询的集合中,但它既不是一个函数的查询的数量在集合中,也不是数据库的大小(元组的数量)。我们利用这一结果,并开发了一种方法,给定一类查询,建立一个简洁的随机样本的数据库,这样,具有很高的概率执行的任何查询类的样本上提供了一个准确的估计的选择性的查询原始的大型数据库。错误概率同时适用于集合中所有查询的选择性估计,因此可以使用相同的样本来评估多个查询的选择性,并且仅在数据库中发生重大更改后才需要刷新样本。通过我们的方法计算的样本表示通常足够小以存储在主存储器中。我们提出了广泛的实验结果,验证了我们的理论分析,并证明了我们的技术相比,复杂的选择性估计技术在PostgreSQL和Microsoft SQL Server的优势。

英文摘要:

We develop a novel method, based on the statistical concept of the Vapnik-Chervonenkis dimension, to evaluate the selectivity (output cardinality) of SQL queries - a crucial step in optimizing the execution of large scale database and data-mining operations. The major theoretical contribution of this work, which is of independent interest, is an explicit bound to the VC-dimension of a range space defined by all possible outcomes of a collection (class) of queries. We prove that the VC-dimension is a function of the maximum number of Boolean operations in the selection predicate and of the maximum number of select and join operations in any individual query in the collection, but it is neither a function of the number of queries in the collection nor of the size (number of tuples) of the database. We leverage on this result and develop a method that, given a class of queries, builds a concise random sample of a database, such that with high probability the execution of any query in the class on the sample provides an accurate estimate for the selectivity of the query on the original large database. The error probability holds simultaneously for the selectivity estimates of all queries in the collection, thus the same sample can be used to evaluate the selectivity of multiple queries, and the sample needs to be refreshed only following major changes in the database. The sample representation computed by our method is typically sufficiently small to be stored in main memory. We present extensive experimental results, validating our theoretical analysis and demonstrating the advantage of our technique when compared to complex selectivity estimation techniques used in PostgreSQL and the Microsoft SQL Server.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑