Lune

VLDB2024Top-tier venue

Robust Join Processing with Diamond Hardened Joins

Altan Birler, Alfons Kemper, Thomas Neumann

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

17 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • The LDBC Social Network Benchmark: Business Intelligence Workload cites Adopting Worst-Case Optimal Joins in Relational Database Systems
  • Optimizing Queries with Many-to-Many Joins cites The LDBC Social Network Benchmark: Business Intelligence Workload
  • Optimizing Queries with Many-to-Many Joins cites Accurate Summary-based Cardinality Estimation Through the Lens of Cardinality Estimation Graphs
  • Optimizing Queries with Many-to-Many Joins cites Free Join: Unifying Worst-Case Optimal and Traditional Joins
  • Optimizing Queries with Many-to-Many Joins cites Adopting Worst-Case Optimal Joins in Relational Database Systems
  • Free Join: Unifying Worst-Case Optimal and Traditional Joins cites Adopting Worst-Case Optimal Joins in Relational Database Systems
  • Instance-Optimal Acyclic Join Processing Without Regret: Engineering the Yannakakis Algorithm in Column Stores cites 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 cites Adopting Worst-Case Optimal Joins in Relational Database Systems
  • Parachute: Single-Pass Bi-Directional Information Passing cites Instance-Optimal Acyclic Join Processing Without Regret: Engineering the Yannakakis Algorithm in Column Stores
  • Parachute: Single-Pass Bi-Directional Information Passing cites Debunking the Myth of Join Ordering: Toward Robust SQL Analytics
  • Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees cites The LDBC Social Network Benchmark: Business Intelligence Workload
  • Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees cites Instance-Optimal Acyclic Join Processing Without Regret: Engineering the Yannakakis Algorithm in Column Stores
  • Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees cites Change Propagation Without Joins
  • Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees cites Debunking the Myth of Join Ordering: Toward Robust SQL Analytics
  • Yannakakis+: Practical Acyclic Query Evaluation with Theoretical Guarantees cites Adopting Worst-Case Optimal Joins in Relational Database Systems
  • Debunking the Myth of Join Ordering: Toward Robust SQL Analytics cites Free Join: Unifying Worst-Case Optimal and Traditional Joins
  • Debunking the Myth of Join Ordering: Toward Robust SQL Analytics cites Adopting Worst-Case Optimal Joins in Relational Database Systems
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers17

  1. Instance-Optimal Acyclic Join Processing Without Regret: Engineering the Yannakakis Algorithm in Column StoresLiese Bekkers, Frank Neven, Stijn Vansummeren, Yisu Remy WangVLDB 2025 · 14 citations
  2. Debunking the Myth of Join Ordering: Toward Robust SQL AnalyticsJunyi Zhao, Kai Su, Yifei Yang, Xiangyao Yu et al.SIGMOD 2025 · 13 citations
  3. Yannakakis+: Practical Acyclic Query Evaluation with Theoretical GuaranteesQichen Wang, Bingnan Chen, Binyang Dai, Ke Yi et al.SIGMOD 2025 · 7 citations
  4. Parachute: Single-Pass Bi-Directional Information PassingMihail Stoian, Andreas Zimmerer, Skander Krid, Amadou Ngom et al.VLDB 2025 · 6 citations
  5. Optimizing Queries with Many-to-Many JoinsHasara Kalumin, Amol DeshpandeICDE 2025 · 3 citations

Builds on8

  1. The LDBC Social Network Benchmark: Business Intelligence WorkloadGábor Szárnyas, Jack Waudby, Benjamin A. Steer, Dávid Szakállas et al.VLDB 2023 · 103 citations
  2. Adopting Worst-Case Optimal Joins in Relational Database SystemsMichael J. Freitag, Maximilian Bandle, Tobias Schmidt, Alfons Kemper et al.VLDB 2020 · 79 citations
  3. Accurate Summary-based Cardinality Estimation Through the Lens of Cardinality Estimation GraphsJeremy Chen, Yuqing Huang, Mushi Wang, Semih Salihoglu et al.VLDB 2022 · 30 citations
  4. Change Propagation Without JoinsQichen Wang, Xiao Hu, Binyang Dai, Ke YiVLDB 2023 · 23 citations
  5. Free Join: Unifying Worst-Case Optimal and Traditional JoinsYisu Remy Wang, Max Willsey, Dan SuciuSIGMOD 2023 · 18 citations

Related papers

  1. One Join Order Does Not Fit All: Reducing Intermediate Results with Per-Split Query PlansYujun He, Hangdong Zhao, Simon Frisk, Yifei Yang et al.VLDB 2026
  2. Efficiently Computing Join Orders with Heuristic SearchImmanuel Haffner, Jens DittrichSIGMOD 2023 · 8 citations
  3. The Data World Is Not Flat: Efficient Factorized Execution for Relational SystemsStefan Lehner, Thomas NeumannVLDB 2026
  4. ADOPT: Adaptively Optimizing Attribute Orders for Worst-Case Optimal Join Algorithms via Reinforcement LearningJunxiong Wang, Immanuel Trummer, Ahmet Kara, Dan OlteanuVLDB 2023 · 10 citations
  5. Efficient Query Re-optimization with Judicious Subquery SelectionsJunyi Zhao, Huanchen Zhang, Yihan GaoSIGMOD 2023 · 12 citations
Dusk over the sea between two cliffs drawn in fine vertical lines