Comparative analysis of the performance of PostgreSQL and Neo4j databases in the context of genealogical queries

Main Article Content

Michał Muzyka

s97681@pollub.edu.pl

https://orcid.org/0009-0006-6325-6937
Mateusz Niedźwiedź

s97683@pollub.edu.pl

https://orcid.org/0009-0003-2664-9000
Marek Miłosz

m.milosz@pollub.pl

https://orcid.org/0000-0002-5898-815X

Abstract

The modern digital age led to the creation of a field called digital genealogy. To this day there seems to be little consensus on which database approach is most suited for such environment; genealogical data remains overlooked in database research. This study examines whether the popular relational SQL database systems prove themselves to be more efficient than graph databases when operating on graph-like genealogical structures. The article analyses PostgreSQL and Neo4j database engines’ efficiency, comparing them across different sizes of genealogical datasets and types of operations on artificially generated data. Results show that an optimized SQL approach is generally faster and uses less memory than the graph-based counterpart, while requiring more disk space, in all tested cases.

Keywords:

efficiency of a query, genealogical query, relational database, non-relational database, PostgreSQL, Neo4j

Sustainable Development Goal (SDG)

  • Industry, Innovation, Technology and Infrastructure

References

Article Details

Muzyka, M., Niedźwiedź, M., & Miłosz, M. (2026). Comparative analysis of the performance of PostgreSQL and Neo4j databases in the context of genealogical queries. Journal of Computer Sciences Institute, 40, 289-296. https://doi.org/10.35784/jcsi.9866