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

TreeTracker Join:简单、最优、快速

TreeTracker Join: Simple, Optimal, Fast

Zeyuan Hu, Yisu Remy Wang, Daniel P. Miranker

AI总结:

本文提出线性时间无环连接算法 TTJ,通过哈希查找失败时重置并移除问题元组降低开销,并以树卷积扩展到循环查询,实验表现良好。

摘要:

我们提出了一种新颖的线性时间无环连接算法 TreeTracker Join(TTJ)。该算法可理解为带有一个简单改动的流水线二元哈希连接:当哈希查找失败时,TTJ 会将执行重置到导致该失败的元组的绑定,并从其关系中移除引发问题的元组。与最著名的线性时间无环连接算法 Yannakakis 算法相比,TTJ 具有相同的渐近复杂度,同时开销更低。此外,我们证明,当通过统计哈希探测次数来衡量查询性能时,TTJ 在相同计划上将达到或优于二元哈希连接。这一性质与计划无关,也与无环性无关。通过引入一种称为树卷积的新型超图分解方法,我们能够将理论结果扩展到循环查询。树卷积迭代地识别并收缩查询超图的无环子图。该方法避免了与树分解相关的冗余计算,并且可能具有独立的研究价值。在 TPC-H、Join Order Benchmark 和 Star Schema Benchmark 上的实验结果显示出良好的效果。

英文摘要:

We present a novel linear-time acyclic join algorithm, TreeTracker Join (TTJ). The algorithm can be understood as the pipelined binary hash join with a simple twist: upon a hash lookup failure, TTJ resets execution to the binding of the tuple causing the failure, and removes the offending tuple from its relation. Compared to the best known linear-time acyclic join algorithm, Yannakakis's algorithm, TTJ shares the same asymptotic complexity while imposing lower overhead. Further, we prove that when measuring query performance by counting the number of hash probes, TTJ will match or outperform binary hash join on the same plan. This property holds independently of the plan and independently of acyclicity. We are able to extend our theoretical results to cyclic queries by introducing a new hypergraph decomposition method called tree convolution. Tree convolution iteratively identifies and contracts acyclic subgraphs of the query hypergraph. The method avoids redundant calculations associated with tree decomposition and may be of independent interest. Empirical results on TPC-H, the Join Order Benchmark, and the Star Schema Benchmark demonstrate favorable results.

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

↑