arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.03194cs.DB
收藏

连接上的蓄水池抽样

Reservoir Sampling over Joins

Binyang Dai, Xiao Hu, Ke Yi

AI总结:

针对流式元组下连接结果随机样本维护难题,本文提出结合谓词广义蓄水池抽样与动态索引的近线性复杂度算法,并在多类数据和查询上验证其显著优于现有方法。

摘要:

连接(join)上的抽样是大规模数据分析中的一项基础任务。与其计算可能极其庞大的完整连接结果,连接结果的均匀样本便足以满足许多用途,例如回答分析性查询或训练机器学习模型。本文研究在元组持续流入时,如何维护连接上的随机样本这一问题。如果没有连接,该问题可以通过一些简单且经典的蓄水池抽样算法解决。然而,连接算子使问题显著变得更困难,因为连接大小可能比输入大出多项式级别。我们针对该问题提出一种新算法,实现了近线性复杂度。其关键技术组成包括一个支持谓词的广义蓄水池抽样算法,以及一个用于连接上抽样的动态索引。我们还在图数据和关系数据上,针对多种连接查询开展了大量实验;实验结果表明,相较于当前最先进方法,该算法具有显著的性能提升。

英文摘要:

Sampling over joins is a fundamental task in large-scale data analytics. Instead of computing the full join results, which could be massive, a uniform sample of the join results would suffice for many purposes, such as answering analytical queries or training machine learning models. In this paper, we study the problem of how to maintain a random sample over joins while the tuples are streaming in. Without the join, this problem can be solved by some simple and classical reservoir sampling algorithms. However, the join operator makes the problem significantly harder, as the join size can be polynomially larger than the input. We present a new algorithm for this problem that achieves a near-linear complexity. The key technical components are a generalized reservoir sampling algorithm that supports a predicate, and a dynamic index for sampling over joins. We also conduct extensive experiments on both graph and relational data over various join queries, and the experimental results demonstrate significant performance improvement over the state of the art.

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

↑