[Paper Review] Compact Data Structures Meet Databases (Invited Talk)
MillenniumDB is a persistent, open-source graph database engine built on a novel domain graph data model that supports multiple graph models (e.g., RDF, property graphs) via edge IDs and optional annotations. It combines relational database techniques with state-of-the-art algorithms for worst-case-optimal joins and automaton-guided path queries, achieving superior performance over leading systems like Neo4j and Blazegraph on real-world Wikidata workloads.
In this systems paper, we present MillenniumDB: a novel graph database engine that is modular, persistent, and open source. MillenniumDB is based on a graph data model, which we call domain graphs, that provides a simple abstraction upon which a variety of popular graph models can be supported. The engine itself is founded on a combination of tried and tested techniques from relational data management, state-of-the-art algorithms for worst-case-optimal joins, as well as graph-specific algorithms for evaluating path queries. In this paper, we present the main design principles underlying MillenniumDB, describing the abstract graph model and query semantics supported, the concrete data model and query syntax implemented, as well as the storage, indexing, query planning and query evaluation techniques used. We evaluate MillenniumDB over real-world data and queries from the Wikidata knowledge graph, where we find that it outperforms other popular persistent graph database engines (including both enterprise and open source alternatives) that support similar query features.
Motivation & Objective
- To address the lack of an open-source graph database that combines state-of-the-art theoretical techniques with practical performance and extensibility.
- To unify diverse graph models—such as RDF and property graphs—under a single, generalizable abstraction called domain graphs.
- To design a modular, extensible, and theoretically well-founded graph database system that supports advanced query features like path queries and joins on any graph element.
- To enable researchers and practitioners to extend and experiment with novel algorithms in a production-ready, open-source environment.
Proposed method
- Proposes domain graphs as a formal data model that extends directed labeled graphs with edge IDs to natively represent higher-arity relations without reification.
- Introduces a new query syntax inspired by Cypher but enhanced to support explicit referencing of edge IDs and joins on any graph element (nodes, edges, labels).
- Employs a hybrid storage and query execution engine combining traditional relational techniques (B+ trees, buffer managers) with cutting-edge algorithms for worst-case-optimal join processing (leapfrog trick) and path query evaluation (automaton-guided).
- Uses a modular architecture to decouple components such as storage, indexing, query planning, and evaluation, enabling extensibility and reuse.
- Supports optional external annotations on graph elements to improve compatibility with property graph models while preserving the core domain graph abstraction.
- Employs a buffer manager to efficiently manage main memory access, minimizing I/O and ensuring consistent performance on large-scale datasets.
Experimental results
Research questions
- RQ1Can a unified graph data model be designed to natively support both RDF and property graph models while enabling efficient query processing?
- RQ2How can edge IDs be leveraged to represent higher-arity relations without requiring reification or reserved vocabularies?
- RQ3Can state-of-the-art theoretical algorithms for worst-case-optimal joins and path queries be effectively integrated into a persistent, open-source database engine?
- RQ4To what extent does combining classical relational techniques with modern algorithmic advances improve performance on real-world graph workloads?
- RQ5Can a modular, open-source graph database system achieve performance competitive with enterprise systems while remaining extensible for research innovation?
Key findings
- MillenniumDB outperforms leading systems such as Neo4j, Blazegraph, Jena, and Virtuoso on real-world queries from the Wikidata knowledge graph.
- In the Wikidata Complete benchmark, MillenniumDB showed no performance degradation when scaling to a larger dataset, indicating strong scalability.
- The system achieved an average query execution time of 13.4 seconds per query (8 seconds excluding timeouts) across a large set of complex queries.
- Only 15 out of over 1,000 queries timed out, and all timeouts occurred on queries returning between 800,000 and 44 million results, indicating robust handling of large result sets.
- The query engine demonstrated consistent performance across different query types, including single, multiple, and complex BGP patterns, as well as property path queries.
- The integration of worst-case-optimal join algorithms (leapfrog) and automaton-guided path evaluation significantly contributed to performance gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.