Lune

SIGMOD2024Top-tier venue

Worst-Case-Optimal Similarity Joins on Graph Databases

Diego Arroyuelo, Benjamin Bustos, Adrián Gómez-Brandón, Aidan Hogan, Gonzalo Navarro, Juan L. Reutter

Abstract

We extend the concept of worst-case optimal equijoins in graph databases to the case where some nodes are required to be within the 𝑘-nearest neighbors (𝑘-NN) of others under some similarity function. We model the problem by superimposing the database graph with the 𝑘-NN graph and show that a variant of Leapfrog TrieJoin (LTJ) implemented over a compact data structure called the Ring can be seamlessly extended to integrate similarity clauses with the equijoins in the LTJ query process, retaining worst-case optimality in many relevant cases. Our experiments on a benchmark that combines Wikidata and IMGpedia show that our enhanced LTJ algorithm outperforms by a considerable margin a baseline that first applies classic LTJ and then completes the query by applying the similarity predicates. The difference is more pronounced on queries where the similarity clauses are more densely connected to the query, becoming of an order of magnitude in some cases.

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.

1 top-tier paper has 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

  • Beyond Equi-joins: Ranking, Enumeration and Factorization cites Optimal Algorithms for Ranked Enumeration of Answers to Full Conjunctive Queries
  • Worst-Case Optimal Graph Joins in Almost No Space 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 papers1

  1. Aster: Enhancing LSM-structures for Scalable Graph DatabaseDingheng Mo, Junfeng Liu, Fan Wang, Siqiang LuoSIGMOD 2025 · 10 citations

Builds on5

  1. Adopting Worst-Case Optimal Joins in Relational Database SystemsMichael J. Freitag, Maximilian Bandle, Tobias Schmidt, Alfons Kemper et al.VLDB 2020 · 79 citations
  2. Optimal Algorithms for Ranked Enumeration of Answers to Full Conjunctive QueriesNikolaos Tziavelis, Deepak Ajwani, Wolfgang Gatterbauer, Mirek Riedewald et al.VLDB 2020 · 45 citations
  3. Worst-Case Optimal Graph Joins in Almost No SpaceDiego Arroyuelo, Aidan Hogan, Gonzalo Navarro, Juan L. Reutter et al.SIGMOD 2021 · 34 citations
  4. Beyond Equi-joins: Ranking, Enumeration and FactorizationNikolaos Tziavelis, Wolfgang Gatterbauer, Mirek RiedewaldVLDB 2021 · 24 citations
  5. Exploration of Knowledge Graphs via Online AggregationOren Kalinsky, Aidan Hogan, Oren Mishali, Yoav Etsion et al.ICDE 2022 · 5 citations

Related papers

  1. APEX: Adaptive Variable-Wise Parallel Execution for Worst-Case Optimal Joins on Graph QueriesYipeng Liu, Yuming Lin, Zhicheng Pan, Chengcheng Yang et al.ICDE 2026
  2. Worst-Case Optimal BGPs on Temporal GraphsDiego Arroyuelo, Aidan Hogan, Gonzalo Navarro, Juan L. ReutterVLDB 2026
  3. Extensible and Robust Evaluation of Similarity QueriesDaniel Ulrich Schmitt, Thomas Hütter, Nikolaus AugstenVLDB 2025
  4. Relational e-matchingYihong Zhang, Yisu Remy Wang, Max Willsey, Zachary TatlockPOPL 2022 · 12 citations
  5. Free Join: Unifying Worst-Case Optimal and Traditional JoinsYisu Remy Wang, Max Willsey, Dan SuciuSIGMOD 2023 · 18 citations
Dusk over the sea between two cliffs drawn in fine vertical lines