arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2002.12459cs.DB
收藏

使用矩阵乘法快速评估带投影的连接查询

Fast Join Project Query Evaluation using Matrix Multiplication

University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Duke University(杜克大学)

Shaleen Deep, Xiao Hu, Paraschos Koutris

AI总结:

本文研究如何利用最坏情况最优算法和矩阵乘法加速带投影的连接查询,提出参数化输出大小的算法,实验显示性能提升可达50倍。

摘要:

在过去几年中,人们投入了大量精力开发连接算法,以实现关系数据库上连接查询的最坏情况最优性。为此,数据库社区在开发简洁算法方面取得了相当大的成功,这些算法对于完全连接查询(即连接输入数据库中存在的所有变量)实现了最坏情况最优运行时间。然而,除了在查询执行计划中下推投影运算符的一些简单技术外,对于带有投影的连接评估知之甚少。这类查询在实体匹配、图分析和压缩图搜索中有大量应用。在本文中,我们研究如何使用最坏情况最优算法和矩阵乘法更快地评估一类带投影的连接查询。关键的是,我们的算法由最终结果的输出大小参数化,允许选择最佳执行策略。我们将算法实现为子程序,并与最先进的技术进行性能比较,显示性能提升可达50倍。更重要的是,我们的实验表明,矩阵乘法是一种有用的操作,由于高度优化的开源库(也具有高度并行性),可以帮助加速连接处理。

英文摘要:

In the last few years, much effort has been devoted to developing join algorithms in order to achieve worst-case optimality for join queries over relational databases. Towards this end, the database community has had considerable success in developing succinct algorithms that achieve worst-case optimal runtime for full join queries, i.e the join is over all variables present in the input database. However, not much is known about join evaluation with {\em projections} beyond some simple techniques of pushing down the projection operator in the query execution plan. Such queries have a large number of applications in entity matching, graph analytics and searching over compressed graphs. In this paper, we study how a class of join queries with projections can be evaluated faster using worst-case optimal algorithms together with matrix multiplication. Crucially, our algorithms are parameterized by the output size of the final result, allowing for choice of the best execution strategy. We implement our algorithms as a subroutine and compare the performance with state-of-the-art techniques to show they can be improved upon by as much as 50x. More importantly, our experiments indicate that matrix multiplication is a useful operation that can help speed up join processing owing to highly optimized open source libraries that are also highly parallelizable.

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

↑