1 University of Maryland College Park, MD, USA.
2 Cornell University, NY, USA.
World Journal of Advanced Research and Reviews, 2025, 25(02), 2336-2342
Article DOI: 10.30574/wjarr.2025.25.2.0586
Received on 14 January 2025; revised on 20 February 2025; accepted on 23 February 2025
The rapid evolution of artificial intelligence (AI) has amplified the need for efficient database management systems (DBMS) to handle the growing volume, variety, and velocity of data. PostgreSQL, a robust relational database, and MongoDB, a leading NoSQL solution, are two widely adopted DBMSs in AI applications, each offering unique advantages. This paper provides a comprehensive comparative analysis of PostgreSQL and MongoDB, focusing on their suitability for AI use cases. Key evaluation criteria include data modeling, query complexity, scalability, ACID compliance, indexing, and integration with AI frameworks. PostgreSQL excels in scenarios requiring strict data consistency, complex querying, and structured data, making it ideal for financial modeling, scientific research, and feature engineering. Conversely, MongoDB's schema-less design, horizontal scalability, and native support for semi-structured data align with real-time analytics, IoT, and evolving AI datasets. The study highlights that the choice between the two databases depends on specific project requirements and proposes hybrid approaches to leverage their complementary strengths. This analysis aims to guide AI practitioners in making informed database decisions to optimize performance, scalability, and flexibility in AI systems.
Artificial Intelligence (AI); PostgreSQL; Mongodb; Database Management Systems (DBMS); Scalability; Data Modeling; Query Optimization
Preview Article PDF
Yijie Weng and Jianhao Wu. Database management systems for artificial intelligence: Comparative analysis of postgre SQL and MongoDB. World Journal of Advanced Research and Reviews, 2025, 25(02), 2336-2342. Article DOI: https://doi.org/10.30574/wjarr.2025.25.2.0586.
Copyright © 2025 Author(s) retain the copyright of this article. This article is published under the terms of the Creative Commons Attribution Liscense 4.0