Lune

VLDB2025顶会

Instance-Optimal Acyclic Join Processing Without Regret: Engineering the Yannakakis Algorithm in Column Stores

Liese Bekkers, Frank Neven, Stijn Vansummeren, Yisu Remy Wang

摘要

Acyclic join queries can be evaluated instance-optimally using Yannakakis' algorithm, which avoids needlessly large intermediate results through semi-join passes. Recent work proposes to address the significant hidden constant factors arising from a naive implementation of Yannakakis by decomposing the hash join operator into two suboperators, called Lookup and Expand. In this paper, we present a novel method for integrating Lookup and Expand plans in interpreted environments, like column stores, formalizing them using Nested Semijoin Algebra (NSA) and implementing them through a shredding approach. We characterize the class of NSA expressions that can be evaluated instance-optimally as those that are 2-phase: no 'shrinking' operator is applied after an unnest (i.e., expand). We introduce Shredded Yannakakis (SYA), an evaluation algorithm for acyclic joins that, starting from a binary join plan, transforms it into a 2-phase NSA plan, and then evaluates it through the shredding technique. We show that SYA is provably robust (i.e., never produces large intermediate results) and without regret (i.e., is never worse than the binary join plan under a suitable cost model) on the class of well-behaved binary join plans. Our experiments on a suite of 1,849 queries show that SYA improves performance for 85.3% of the queries with speedups up to 62.5x, while remaining competitive on the other queries. We hope this approach offers a fresh perspective on Yannakakis' algorithm, helping system engineers better understand its practical benefits and facilitating its adoption into a broader spectrum of query engines.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Succinct Structure Representations for Efficient Query Optimization 引用了 Robust Join Processing with Diamond Hardened Joins
  • Succinct Structure Representations for Efficient Query Optimization 引用了 Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees
  • Succinct Structure Representations for Efficient Query Optimization 引用了 Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
  • Robust Join Processing with Diamond Hardened Joins 引用了 Accurate Summary-based Cardinality Estimation Through the Lens of Cardinality Estimation Graphs
  • Robust Join Processing with Diamond Hardened Joins 引用了 Adopting Worst-Case Optimal Joins in Relational Database Systems
  • Parachute: Single-Pass Bi-Directional Information Passing 引用了 Robust Join Processing with Diamond Hardened Joins
  • Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees 引用了 Robust Join Processing with Diamond Hardened Joins
  • Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees 引用了 Adopting Worst-Case Optimal Joins in Relational Database Systems
  • The Data World Is Not Flat: Efficient Factorized Execution for Relational Systems 引用了 Accurate Summary-based Cardinality Estimation Through the Lens of Cardinality Estimation Graphs
  • The Data World Is Not Flat: Efficient Factorized Execution for Relational Systems 引用了 Robust Join Processing with Diamond Hardened Joins
  • The Data World Is Not Flat: Efficient Factorized Execution for Relational Systems 引用了 Adopting Worst-Case Optimal Joins in Relational Database Systems
  • Poisson Sampling over Acyclic Joins 引用了 Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees
  • Poisson Sampling over Acyclic Joins 引用了 Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Yannakakis+: Practical Acyclic Query Evaluation with Theoretical GuaranteesQichen Wang, Bingnan Chen, Binyang Dai, Ke Yi 等SIGMOD 2025 · 7 次引用
  2. Parachute: Single-Pass Bi-Directional Information PassingMihail Stoian, Andreas Zimmerer, Skander Krid, Amadou Ngom 等VLDB 2025 · 6 次引用
  3. Poisson Sampling over Acyclic JoinsLiese Bekkers, Frank Neven, Lorrens Pantelis, Stijn VansummerenSIGMOD 2026 · 1 次引用
  4. Succinct Structure Representations for Efficient Query OptimizationZhekai Jiang, Qichen Wang, Christoph KochSIGMOD 2026
  5. The Data World Is Not Flat: Efficient Factorized Execution for Relational SystemsStefan Lehner, Thomas NeumannVLDB 2026

它引用的 Paper6

  1. Cardinality Estimation in DBMS: A Comprehensive Benchmark EvaluationYuxing Han, Ziniu Wu, Peizhi Wu, Rong Zhu 等VLDB 2022 · 169 次引用
  2. Adopting Worst-Case Optimal Joins in Relational Database SystemsMichael J. Freitag, Maximilian Bandle, Tobias Schmidt, Alfons Kemper 等VLDB 2020 · 79 次引用
  3. Accurate Summary-based Cardinality Estimation Through the Lens of Cardinality Estimation GraphsJeremy Chen, Yuqing Huang, Mushi Wang, Semih Salihoglu 等VLDB 2022 · 30 次引用
  4. Robust Join Processing with Diamond Hardened JoinsAltan Birler, Alfons Kemper, Thomas NeumannVLDB 2024 · 23 次引用
  5. Scalable Querying of Nested DataJaclyn Smith, Michael Benedikt, Milos Nikolic, Amir ShaikhhaVLDB 2021 · 21 次引用

相关 Paper

  1. One Join Order Does Not Fit All: Reducing Intermediate Results with Per-Split Query PlansYujun He, Hangdong Zhao, Simon Frisk, Yifei Yang 等VLDB 2026
  2. Query Optimization for Database-Returning QueriesSimon Rink, Jens DittrichSIGMOD 2026 · 1 次引用
  3. Secure Yannakakis: Join-Aggregate Queries over Private DataYilei Wang, Ke YiSIGMOD 2021 · 49 次引用
  4. LinCQA: Faster Consistent Query Answering with Linear Time GuaranteesZhiwei Fan, Paraschos Koutris, Xiating Ouyang, Jef WijsenSIGMOD 2023 · 2 次引用
  5. HoneyComb: A Parallel Worst-Case Optimal Join on MulticoresJiacheng Wu, Dan SuciuSIGMOD 2025 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖