arrow
Return

CompactLTJ: Space & Time Efficient Leapfrog Triejoin on Graph Databases

delete2025-09-25
delete0
delete
OA
AI
D
Diego Arroyuelo
D
Daniela Campos
A
Adrián Gómez‐Brandón *
Y
Yuval Linker
G
Gonzalo Navarro
C
Carlos Rojas
D
Domagoj Vrgoč
DOI:10.1007/s00778-025-00945-5delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Leapfrog Triejoin (LTJ) is arguably the most practical and popular worst-case-optimal (wco) algorithm for solving basic graph patterns in graph databases. Its main drawback is that it needs the database triples (subject, predicate, object) represented as paths in a trie, for each of the six orders of subject, predicate, and object. The resulting blowup in space makes most systems disregard LTJ or implement it only partially, which makes their corresponding algorithms non-wco. In this paper we show that, by using compact data structures, it is possible to build an index that at the same time matches the query time performance of the fastest classic wco index, and uses a fraction of the space of non-wco indices (which are much slower). Concretely, we make use of compact tree representations to store functional tries using one bit per trie edge, instead of one pointer, and further reduce the space by storing partial tries. Our most compact variant uses 5–6 times less space than classic wco implementations and 2–3 times less than classic non-wco systems. At solving queries, it is on par with the fastest classic wco system, and 30–40 times faster than non-wco systems. We further incorporate improved query resolution strategies into CompactLTJ variants, which makes it considerably faster than classic wco systems as well, on queries that do not output too many results. Finally, we show how CompactLTJ can incorporate dynamism without altering its performance, even under very demanding update regimes. We leave a public fully-functional implementation of CompactLTJ that can be directly used by practitioners.
Keywords:
Worst-case optimal joins
Leapfrog Triejoin
compact data structures
graph patterns
graph databases
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

T
The VLDB Journal
IF:
0
Papers:
36
Citations:
0

Organization

E
escuela de ingeniería
Scholars:
9
Papers: 9
Citations: 0
U
Universidade da Coruña
Scholars:
429
Papers: 197
Citations: 4.8K
U
University of Chile
Scholars:
509
Papers: 235
Citations: 1.9W
researcher View more organizations