Site icon IT Tutorial

About MongoDB, Why we use it? MongoDB’s Terminology and Implementation

Organizations face every day new challenges in order to continuously deliver new business functionality by implementing new It processes like Agile and DevOps and adopting new architectures such as cloud and microservices. To align with all these, we need a new database concept able to manage massive increases in rapidly changing data types and able to work with data wherever it stores in the client side and in the data layer side.

So the NoSQL databases “Not only SQL” are designed to respond to these challenges. MongoDB is the leading NoSQL database and an open-source document database.

In this article we will explain MongoDB concepts, give an idea on its advantages and terminology and where we can implement it.

MongoDB’s Advantages:

MongoDB’s data platform is based on two principles concepts:

Basics Terminology:

MongoDB stores  BSON documents in collections; the collections in database. A single MongoDB server typically has multiple databases. Each database gets its own set of files on the file system as format of collections. Each collection is a set of documents . One of the collection’s major advantage is no enforcing of schemas and in the same time we have a dynamic schema. Dynamic schema means that documents in the same collection do not need to have the same set of fields or structure, and common fields in a collection’s documents may hold different types of data.

The following figure shows the correspondence terminology of Relational Database with MongoDB:

Query Language:

Both RDBMS (Oracle and MySQL) and MongoDB have a rich query language.

The following figure shows the Query Language’s correspondence Of RDBMS and MongoDb:

Implementation:

To take advantage from MongoDB, we can choose implement MongoDB in these fields:

 

Exit mobile version