arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1906.05745cs.DB
收藏

多路连接上的内存高效Group-by聚集

Memory-Efficient Group-by Aggregates over Multi-Way Joins

Konstantinos Xirogiannopoulos, Amol Deshpande

摘要:

关系数据库中的聚合计算一直使用标准的一元聚合和二元连接运算符来完成。这些实现了经典的模型,每次计算两个关系之间的连接,具体化中间结果,然后继续进行基于排序或基于哈希的聚合计算以获得最终结果。然而,这种方法在低选择性连接的情况下可能是非常次优的,并且通常最终生成大量的中间结果,即使所涉及的关系以及最终结果集本身非常小。此外,许多计算的中间结果可能永远不会成为最终结果的一部分。在本文中,我们提出了一种新的聚合查询处理技术,利用图数据结构对有效地回答聚合查询连接,而不物化中间连接结果。我们将此技术包装在一个名为JOIN-AGG的多路复合数据库操作符中,该操作符结合了Join和Aggregation。我们提供了一个通用的框架,用于执行聚合查询任意非循环连接,涉及任何数量的组的属性从任何关系。我们还对真实世界和合成数据集进行了全面的实验评估。我们的实验表明,我们的运营商可以实现数量级较低的查询时间和内存需求相比,传统的方法,即使在数据库系统之外实现。

英文摘要:

Aggregate computation in relational databases has long been done using the standard unary aggregation and binary join operators. These implement the classical model of computing joins between relations two at a time, materializing the intermediate results, and then proceeding to do either sort-based or hash-based aggregate computation to derive the final result. This approach, however, can be dramatically sub-optimal in the case of low-selectivity joins, and often ends up generating large intermediate results even if the relations involved as well as the final result sets themselves are quite small. Moreover, many of the computed intermediate results may never be part of the final result. In this paper we propose a novel aggregate query processing technique that leverages graph data structures towards efficiently answering aggregate queries over joins, without materializing intermediate join results. We wrap this technique inside a multi-way composite database operator called JOIN-AGG that combines Join and Aggregation. We provide a general framework for executing aggregation queries over arbitrary acyclic joins, involving any number of group-by attributes from any relation. We also present a thorough experimental evaluation on both real world and synthetic datasets. Our experiments show that our operators can achieve orders of magnitude lower query times and memory requirements compared to the traditional approach, even when implemented outside of the database system.

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

↑