Robust Join Processing with Diamond Hardened Joins
Altan Birler, Alfons Kemper, Thomas Neumann
摘要
Join ordering and join processing has a huge impact on query execution and can easily affect the query response time by orders of magnitude. In particular, when joins are potentially growing n:m joins, execution can be very expensive. This can be seen by examining the sizes of intermediate results: If a join query produces many redundant tuples that are later eliminated, the query is likely expensive, which is not justified by the query result. This gives the query a diamond shape, with intermediate results larger than the inputs and the output. This occurs frequently in various workloads, particularly, in graph workloads, and also in benchmarks like JOB. We call this issue the diamond problem, and to address it, we propose the diamond hardened join framework, which splits join operators into two suboperators: Lookup & Expand. By allowing these suboperators to be freely reordered by the query optimizer, we improve the runtime of queries that exhibit the diamond problem without sacrificing performance for the rest of the queries. Past theoretical work such as worst-case optimal joins similarly try to avoid huge intermediate results. However, these approaches have significant overheads that impact all queries. We demonstrate that our approach leads to excellent performance both in queries that exhibit the diamond problem and in regular queries that can be handled by traditional binary joins. This allows for a unified approach, offering excellent performance across the board. Compared to traditional joins, queries' performance is improved by up to 500x in the CE benchmark and remains excellent in TPC-H and JOB.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 17 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- The LDBC Social Network Benchmark: Business Intelligence Workload 引用了 Adopting Worst-Case Optimal Joins in Relational Database Systems
- Optimizing Queries with Many-to-Many Joins 引用了 The LDBC Social Network Benchmark: Business Intelligence Workload
- Optimizing Queries with Many-to-Many Joins 引用了 Accurate Summary-based Cardinality Estimation Through the Lens of Cardinality Estimation Graphs
- Optimizing Queries with Many-to-Many Joins 引用了 Free Join: Unifying Worst-Case Optimal and Traditional Joins
- Optimizing Queries with Many-to-Many Joins 引用了 Adopting Worst-Case Optimal Joins in Relational Database Systems
- Free Join: Unifying Worst-Case Optimal and Traditional Joins 引用了 Adopting Worst-Case Optimal Joins in Relational Database Systems
- Instance-Optimal Acyclic Join Processing Without Regret: Engineering the Yannakakis Algorithm in Column Stores 引用了 Accurate Summary-based Cardinality Estimation Through the Lens of Cardinality Estimation Graphs
- Instance-Optimal Acyclic Join Processing Without Regret: Engineering the Yannakakis Algorithm in Column Stores 引用了 Adopting Worst-Case Optimal Joins in Relational Database Systems
- Parachute: Single-Pass Bi-Directional Information Passing 引用了 Instance-Optimal Acyclic Join Processing Without Regret: Engineering the Yannakakis Algorithm in Column Stores
- Parachute: Single-Pass Bi-Directional Information Passing 引用了 Debunking the Myth of Join Ordering: Toward Robust SQL Analytics
- Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees 引用了 The LDBC Social Network Benchmark: Business Intelligence Workload
- Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees 引用了 Instance-Optimal Acyclic Join Processing Without Regret: Engineering the Yannakakis Algorithm in Column Stores
- Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees 引用了 Change Propagation Without Joins
- Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees 引用了 Debunking the Myth of Join Ordering: Toward Robust SQL Analytics
- Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees 引用了 Adopting Worst-Case Optimal Joins in Relational Database Systems
- Debunking the Myth of Join Ordering: Toward Robust SQL Analytics 引用了 Free Join: Unifying Worst-Case Optimal and Traditional Joins
- Debunking the Myth of Join Ordering: Toward Robust SQL Analytics 引用了 Adopting Worst-Case Optimal Joins in Relational Database Systems
引用它的顶会 Paper17
- Instance-Optimal Acyclic Join Processing Without Regret: Engineering the Yannakakis Algorithm in Column StoresLiese Bekkers, Frank Neven, Stijn Vansummeren, Yisu Remy WangVLDB 2025 · 14 次引用
- Debunking the Myth of Join Ordering: Toward Robust SQL AnalyticsJunyi Zhao, Kai Su, Yifei Yang, Xiangyao Yu 等SIGMOD 2025 · 13 次引用
- Yannakakis+: Practical Acyclic Query Evaluation with Theoretical GuaranteesQichen Wang, Bingnan Chen, Binyang Dai, Ke Yi 等SIGMOD 2025 · 7 次引用
- Parachute: Single-Pass Bi-Directional Information PassingMihail Stoian, Andreas Zimmerer, Skander Krid, Amadou Ngom 等VLDB 2025 · 6 次引用
- Optimizing Queries with Many-to-Many JoinsHasara Kalumin, Amol DeshpandeICDE 2025 · 3 次引用
它引用的 Paper8
- The LDBC Social Network Benchmark: Business Intelligence WorkloadGábor Szárnyas, Jack Waudby, Benjamin A. Steer, Dávid Szakállas 等VLDB 2023 · 103 次引用
- Adopting Worst-Case Optimal Joins in Relational Database SystemsMichael J. Freitag, Maximilian Bandle, Tobias Schmidt, Alfons Kemper 等VLDB 2020 · 79 次引用
- Accurate Summary-based Cardinality Estimation Through the Lens of Cardinality Estimation GraphsJeremy Chen, Yuqing Huang, Mushi Wang, Semih Salihoglu 等VLDB 2022 · 30 次引用
- Change Propagation Without JoinsQichen Wang, Xiao Hu, Binyang Dai, Ke YiVLDB 2023 · 23 次引用
- Free Join: Unifying Worst-Case Optimal and Traditional JoinsYisu Remy Wang, Max Willsey, Dan SuciuSIGMOD 2023 · 18 次引用
相关 Paper
- One Join Order Does Not Fit All: Reducing Intermediate Results with Per-Split Query PlansYujun He, Hangdong Zhao, Simon Frisk, Yifei Yang 等VLDB 2026
- Efficiently Computing Join Orders with Heuristic SearchImmanuel Haffner, Jens DittrichSIGMOD 2023 · 8 次引用
- The Data World Is Not Flat: Efficient Factorized Execution for Relational SystemsStefan Lehner, Thomas NeumannVLDB 2026
- ADOPT: Adaptively Optimizing Attribute Orders for Worst-Case Optimal Join Algorithms via Reinforcement LearningJunxiong Wang, Immanuel Trummer, Ahmet Kara, Dan OlteanuVLDB 2023 · 10 次引用
- Efficient Query Re-optimization with Judicious Subquery SelectionsJunyi Zhao, Huanchen Zhang, Yihan GaoSIGMOD 2023 · 12 次引用
