The reviewed record of science sign in
Pith

arxiv: 2403.01631 · v4 · pith:XQQJISYD · submitted 2024-03-03 · cs.DB

TreeTracker Join: Simple, Optimal, Fast

Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel pith:XQQJISYDrecord.jsonopen to challenge →

classification cs.DB
keywords joinalgorithmhashacyclicresultstreebenchmarkbinary
0
0 comments X
read the original abstract

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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.