Open In App

Difference between RDBMS and MongoDB

MongoDB is an open-source document-oriented database used for high volume data storage. It falls under the classification of a NoSQL database. NoSQL tool means that it doesn’t utilize the usual rows and columns. MongoDB uses BSON (document storage format) which is a binary style of JSON documents. 

Features of MongoDB:



What is RDBMS?

It stands for Relational Database Management System. It stores data in the form of related tables.
Features of RDBMS:



The trade-off between RDBMS and MongoDB:

Trade-off b/w RDBMS and MongoDB

Difference between RDBMS and MongoDB:

RDBMS MongoDB
It is a relational database. It is a non-relational and document-oriented database.
Not suitable for hierarchical data storage. Suitable for hierarchical data storage.
It is vertically scalable i.e increasing RAM. It is horizontally scalable i.e we can add more servers.
It has a predefined schema. It has a dynamic schema.
It is quite vulnerable to SQL injection. It is not affected by SQL injection.
It centers around ACID properties (Atomicity, Consistency, Isolation, and Durability). It centers around the CAP theorem (Consistency, Availability, and Partition tolerance).
It is row-based. It is document-based.
It is slower in comparison with MongoDB. It is almost 100 times faster than RDBMS.
Supports complex joins. No support for complex joins.
It is column-based. It is field-based.
It does not provide JavaScript client for querying. It provides a JavaScript client for querying.
It supports SQL query language only. It supports JSON query language along with SQL.
Article Tags :