Site icon i2tutorials

MongoDB how  work’s

  

It’s time to take a closer look at how things actually happen behind the scenes. In MongoDB, the data is stored in databases, and as we are aware, the MongoDB server is a database server. In other words, MongoDB environment provides you with a server that you can start, and then use MongoDB to create multiple databases on that server as you wish. 

Because of its NoSQL database, the data is stored in the collections and documents of the system. The database, the collection, and the documents are therefore related to each other in the following way: 

NOTE: A MongoDB server allows you to run multiple databases at the same time. 

How mongoDB is different from RDBMS ? 

The following are some of the major differences between MongoDB and the RDBMS that we use today:

MongoDBRDBMS
This is a non-relational database that is document-oriented and non-relational.In other words, it can be defined as a relational database.
A hierarchical data storage system is suitable for storing data in hierarchical structures.As a result, it is not suitable for the storage of hierarchical data.
The schema of the database is dynamic.There is a predefined schema for it.
As the name suggests, it is based on the CAP theorem (Consistency, Availability, and Partition tolerance).The focus of this course is on the ACID properties (Atomicity, Consistency, Isolation, and Durability).
Compared to RDBMS, it is much faster when it comes to performance.There is a difference in performance between it and MongoDB in terms of speed.

 

Exit mobile version