CompactLTJ: Space & Time Efficient Leapfrog Triejoin on Graph Databases
| UDC.coleccion | Investigación | |
| UDC.departamento | Ciencias da Computación e Tecnoloxías da Información | |
| UDC.grupoInv | Laboratorio de Bases de Datos (LBD) | |
| UDC.institutoCentro | CITIC - Centro de Investigación de Tecnoloxías da Información e da Comunicación | |
| UDC.issue | 67 | |
| UDC.journalTitle | The VLDB Journal | |
| UDC.volume | 34 | |
| dc.contributor.author | Arroyuelo, Diego | |
| dc.contributor.author | Campos, Daniela | |
| dc.contributor.author | Gómez-Brandón, Adrián | |
| dc.contributor.author | Linker, Yuval | |
| dc.contributor.author | Navarro, Gonzalo | |
| dc.contributor.author | Rojas, Carlos | |
| dc.contributor.author | Vrgoč, Domagoj | |
| dc.date.accessioned | 2026-02-10T10:52:29Z | |
| dc.date.available | 2026-02-10T10:52:29Z | |
| dc.date.issued | 2025-09-25 | |
| dc.description | Financiado 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.sponsorship | Open 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.sponsorship | Chile. Agencia National de Investigación y Desarrollo; ICN17_002 | |
| dc.description.sponsorship | Chile. Fondo Nacional de Desarrollo Científico y Tecnológico (Fondecyt); 1-230755 | |
| dc.description.sponsorship | Xunta de Galicia; ED431C 2025/34 | |
| dc.description.sponsorship | Xunta de Galicia; ED431G 2023/01 | |
| dc.identifier.citation | Arroyuelo, 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.doi | 10.1007/s00778-025-00945-5 | |
| dc.identifier.issn | 0949-877X | |
| dc.identifier.uri | https://hdl.handle.net/2183/47318 | |
| dc.language.iso | eng | |
| dc.publisher | Springer | |
| dc.relation.projectID | info: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.projectID | info: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.projectID | info: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.uri | https://doi.org/10.1007/s00778-025-00945-5 | |
| dc.rights | Attribution 4.0 International | en |
| dc.rights.accessRights | open access | |
| dc.rights.uri | http://creativecommons.org/licenses/by/4.0/ | |
| dc.subject | Worst-case optimal joins | |
| dc.subject | Leapfrog Triejoin | |
| dc.subject | Compact data structures | |
| dc.subject | Graph patterns | |
| dc.subject | Graph databases | |
| dc.title | CompactLTJ: Space & Time Efficient Leapfrog Triejoin on Graph Databases | |
| dc.type | journal article | |
| dc.type.hasVersion | VoR | |
| dspace.entity.type | Publication | |
| relation.isAuthorOfPublication | 1a99c615-806a-48b0-8e5f-7772467f275d | |
| relation.isAuthorOfPublication.latestForDiscovery | 1a99c615-806a-48b0-8e5f-7772467f275d |
Files
Original bundle
1 - 1 of 1
Loading...
- Name:
- GomezBrandon_Adrian_2025_CompactLTJ.pdf
- Size:
- 755.71 KB
- Format:
- Adobe Portable Document Format

