The Forgotten Document-Oriented Database Management Systems: An Overview and Benchmark of Native XML DODBMSes in Comparison with JSON DODBMSes

Ciprian-Octavian Truicà, Elena-Simona Apostol, Jerome Darmont, Torben Bach Pedersen

This paper, titled "The Forgotten Document-Oriented Database Management Systems," provides a much-needed reality check for the NoSQL world. While JSON-based databases like MongoDB currently dominate the landscape, the authors revisit Native XML Databases (XDBMSes) to see if they still have a place in the Big Data era.

TL;DR

The paper introduces a new Big Data-scale benchmark to compare "legacy" Native XML databases against modern JSON-based systems. The surprising result: older systems like BaseX can actually outperform modern giants like MongoDB and Couchbase when handling complex aggregation queries on large, heterogeneous datasets.

What Problem Does This Paper Address?

In the rush toward the "NoSQL" movement, the industry largely pivoted from XML to JSON as the standard for semi-structured data. Consequently, Native XML Database Management Systems (XDBMSes)—which were specifically designed to handle hierarchical, schema-flexible data—were rebranded or simply forgotten.

However, as IoT and Big Data generate increasingly complex and varied data structures, the authors noticed a gap: there was no modern, Big Data-compliant benchmark to compare these two subcategories of Document-Oriented DBMSes (DODBMSes). They set out to answer whether XDBMSes are truly obsolete or if they remain a viable (or even superior) candidate for specific high-complexity data management tasks.

Methods

The researchers developed a comprehensive benchmark consisting of nine queries: five for filtering (selection) and four for complex aggregation (grouping and counting). To ensure a fair and rigorous comparison, they selected three representatives from each category:

  • XDBMS (XML): BaseX, eXist-db, and Sedna.
  • JDBMS (JSON): MongoDB, CouchDB, and Couchbase.

The evaluation focused on single-instance deployments to establish a baseline of core engine performance before considering the complexities of horizontal scaling (sharding). They measured query response time and standard deviation across multiple "warm" runs.

Datasets

The authors utilized a large-scale dataset derived from the DBLP computer science bibliography.

  • Scale: Over 6.15 million records.
  • Complexity: They proposed a heterogeneous entity-relationship schema (including Authors, Records, Books, Articles, and Journals) to simulate real-world data variety.
  • Scaling Factor (SF): To test scalability, the dataset was split into four subsets with scaling factors ranging from 0.125 to 1.0 (the full 2.25GB XML / 2.06GB JSON corpus).

Key Insights and Ideas

  • The "Legacy" Advantage: XDBMSes, particularly those using XQuery 3.1 like BaseX, are highly optimized for navigating deep hierarchies. This makes them surprisingly efficient at "joining" related data points that are nested within documents—a task that often requires expensive "unwind" operations in JSON databases.
  • Filtering vs. Aggregation: There is a clear functional divide. JDBMSes (led by MongoDB) are generally faster at simple filtering and data retrieval. However, when the task shifts to complex analytical reporting (aggregation), the XDBMS architecture often takes the lead.
  • The JVM Bottleneck: Systems like eXist-db, which are heavily dependent on the Java Virtual Machine (JVM), showed significant stability issues at scale, often returning memory errors on the largest datasets.
  • Materialization Wins: CouchDB’s use of materialized views allowed it to dominate in specific high-selectivity aggregation queries, proving that pre-computing results is still a powerful strategy for document databases.

Key Results

  • BaseX is the dark horse: It outperformed all other tested systems—including the modern JDBMSes—on three out of the four complex aggregation queries.
  • MongoDB leads in speed: For simple filtering queries, MongoDB consistently delivered the fastest response times, followed closely by BaseX.
  • Couchbase struggles at scale: In this specific benchmark, Couchbase showed the overall worst performance among the JSON-based systems, particularly with complex queries on large collections.
  • Storage Efficiency: MongoDB’s internal compression mechanisms made it the most storage-efficient, while Sedna’s database size ballooned to nearly five times the size of the raw data.

Limitations and Future Work

The authors acknowledge that their study focused strictly on single-instance performance. While this provides a clean look at the database engines, it doesn't account for the horizontal scalability (sharding and replication) that modern JDBMSes are famous for. Additionally, the benchmark focused on data retrieval (reads) rather than write performance or concurrency.

For future work, the team plans to:

  1. Expand the benchmark to include OLAP (Online Analytical Processing) style queries.
  2. Develop new sampling strategies to handle even larger datasets.
  3. Explore query rewriting techniques to further optimize XDBMS performance in Big Data environments.

Summary updated

BibTeX
@inproceedings{truica2025forgotten,
  author = {Ciprian-Octavian Truicà and Elena-Simona Apostol and Jerome Darmont and Torben Bach Pedersen},
  title = {{The Forgotten Document-Oriented Database Management Systems: An Overview and Benchmark of Native XML DODBMSes in Comparison with JSON DODBMSes}},
  booktitle = {Big Data Research},
  year = {2025},
  url = {https://openreview.net/forum?id=Y2Na9YXv0N},
}

Loading related content...

Figure