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

Free Join:统一最坏情况下的最优联接和传统联接

Free Join: Unifying Worst-Case Optimal and Traditional Joins

Yisu Remy Wang, Max Willsey, Dan Suciu

摘要:

在过去的十年中,最坏情况下的最优连接(WCOJ)算法已经成为一个新的范例,在查询处理的最基本的挑战之一:计算连接效率。这样的算法可以比传统的二进制连接快得多,同时仍然易于理解和实现。然而,他们已被发现是效率较低的旧范式,传统的二进制连接计划,在实践中发现的典型的非循环查询。一些支持WCOJ的数据库系统使用混合方法:使用WCOJ处理查询的循环子部分(如果有的话),否则依赖于传统的二进制连接。在本文中,我们提出了一个新的框架,称为自由加入,统一了这两种范式。我们描述了一种新型的计划,一种新的数据结构(它统一了两种范式使用的哈希表和尝试),以及一套优化技术。我们的系统在Rust中实现,在标准查询基准上匹配或优于传统的二进制连接和泛型连接。

英文摘要:

Over the last decade, worst-case optimal join (WCOJ) algorithms have emerged as a new paradigm for one of the most fundamental challenges in query processing: computing joins efficiently. Such an algorithm can be asymptotically faster than traditional binary joins, all the while remaining simple to understand and implement. However, they have been found to be less efficient than the old paradigm, traditional binary join plans, on the typical acyclic queries found in practice. Some database systems that support WCOJ use a hypbrid approach: use WCOJ to process the cyclic subparts of the query (if any), and rely on traditional binary joins otherwise. In this paper we propose a new framework, called Free Join, that unifies the two paradigms. We describe a new type of plan, a new data structure (which unifies the hash tables and tries used by the two paradigms), and a suite of optimization techniques. Our system, implemented in Rust, matches or outperforms both traditional binary joins and Generic Join on standard query benchmarks.

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

↑