CompactLTJ: Space & Time Efficient Leapfrog Triejoin on Graph Databases

UDC.coleccionInvestigación
UDC.departamentoCiencias da Computación e Tecnoloxías da Información
UDC.grupoInvLaboratorio de Bases de Datos (LBD)
UDC.institutoCentroCITIC - Centro de Investigación de Tecnoloxías da Información e da Comunicación
UDC.issue67
UDC.journalTitleThe VLDB Journal
UDC.volume34
dc.contributor.authorArroyuelo, Diego
dc.contributor.authorCampos, Daniela
dc.contributor.authorGómez-Brandón, Adrián
dc.contributor.authorLinker, Yuval
dc.contributor.authorNavarro, Gonzalo
dc.contributor.authorRojas, Carlos
dc.contributor.authorVrgoč, Domagoj
dc.date.accessioned2026-02-10T10:52:29Z
dc.date.available2026-02-10T10:52:29Z
dc.date.issued2025-09-25
dc.descriptionFinanciado para publicación en acceso aberto: CRUE-CSIC
dc.description.abstract[Abstract]: 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.
dc.description.sponsorshipOpen Access funding provided thanks to the CRUE-CSIC agreement with Springer Nature. Supported by ANID – Millennium Science Initiative Program – Code ICN17_002, Chile. A.G. is funded in part by MCIN/AEI/10.13039/5011000-11033: grant PID2020-114635RB-I00 (EXTRACompact); by MCIN/AEI/10.130-39/501100011033 and “Next-GenerationEU”/PRTR: grant TED2021-129245B-C21 (PLAGEMIS); by MCIN/A-EI/10.13039/501100011033 and EU/ERDF “A way of making Europe”: PID2022-141027NB-C21 EARTHDL Xunta de Galicia, grant: ED431C 2025/34; and CITIC receives subsidies from Xunta de Galicia and FEDER Galicia (Ref. ED431G 2023/01). G.N. is funded in part by Fondecyt Grant 1-230755, Chile.
dc.description.sponsorshipChile. Agencia National de Investigación y Desarrollo; ICN17_002
dc.description.sponsorshipChile. Fondo Nacional de Desarrollo Científico y Tecnológico (Fondecyt); 1-230755
dc.description.sponsorshipXunta de Galicia; ED431C 2025/34
dc.description.sponsorshipXunta de Galicia; ED431G 2023/01
dc.identifier.citationArroyuelo, D., Campos, D., Gómez-Brandón, A. et al. CompactLTJ: Space & Time Efficient Leapfrog Triejoin on Graph Databases. The VLDB Journal 34, 67 (2025). https://doi.org/10.1007/s00778-025-00945-5
dc.identifier.doi10.1007/s00778-025-00945-5
dc.identifier.issn0949-877X
dc.identifier.urihttps://hdl.handle.net/2183/47318
dc.language.isoeng
dc.publisherSpringer
dc.relation.projectIDinfo:eu-repo/grantAgreement/AEI/Plan Estatal de Investigación Científica y Técnica y de Innovación 2017-2020/PID2020-114635RB-I00/ES/EXPLOTACIÓN ENRIQUECIDA DE TRAYECTORIAS CON ESTRUCTURAS DE DATOS COMPACTAS Y GIS
dc.relation.projectIDinfo:eu-repo/grantAgreement/AEI/Plan Estatal de Investigación Científica y Técnica y de Innovación 2021-2023/TED2021-129245B-C21/ES/PLATAFORMA PARA LA GENERACIÓN AUTOMÁTICA DE SISTEMAS DE INFORMACIÓN DE LA MOVILIDAD ENERGÉTICAMENTE EFICIENTES, BASADOS EN ESTRUCTURAS DE DATOS COMPACTAS Y GIS (PLAGEMIS)
dc.relation.projectIDinfo:eu-repo/grantAgreement/AEI/Plan Estatal de Investigación Científica, Técnica y de Innovación 2021-2023/PID2022-141027NB-C21/ES/MODELADO, DESCUBRIMIENTO, EXPLORACION Y ANALISIS DE DATA LAKES MEDIOAMBIENTALES
dc.relation.urihttps://doi.org/10.1007/s00778-025-00945-5
dc.rightsAttribution 4.0 Internationalen
dc.rights.accessRightsopen access
dc.rights.urihttp://creativecommons.org/licenses/by/4.0/
dc.subjectWorst-case optimal joins
dc.subjectLeapfrog Triejoin
dc.subjectCompact data structures
dc.subjectGraph patterns
dc.subjectGraph databases
dc.titleCompactLTJ: Space & Time Efficient Leapfrog Triejoin on Graph Databases
dc.typejournal article
dc.type.hasVersionVoR
dspace.entity.typePublication
relation.isAuthorOfPublication1a99c615-806a-48b0-8e5f-7772467f275d
relation.isAuthorOfPublication.latestForDiscovery1a99c615-806a-48b0-8e5f-7772467f275d

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
GomezBrandon_Adrian_2025_CompactLTJ.pdf
Size:
755.71 KB
Format:
Adobe Portable Document Format