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

2024Year
3Citations
1Top-tier citations

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.

• Theory of computation → Database query processing and optimization (theory); Data structures and algorithms for data management.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext e3e6c504-d492-41b8-90af-686c95ca5a69

Cited by top-tier papers1

Ask how each one uses it

Builds on5

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines