MongoDB

Is an open-source, document database used in the MERN stack.

It is a non relational database meaning it does not store data in the tradition row and column format as one would with a relational database. Instead, each data entry is stored as a JSON ‘document’ and entries are grouped together as ‘collections’.

A typical relational database:

An example of a document (one data entry) in MongoDB (a non-relational database):

Here is a side by side comparison of how a typical relational database and MongoDB store data:

Features of MongoDB

  • Highly Scalable

As Mongo is a non-relational database, it is able to scale far beyond relational databases, this is due to horizontal scaling. This essentially means that non-relational databases such as mongo can be split across different servers which distributes storage and the load on any one server. As your deployments grow, the database scales easily with no downtime, and without changing your application.

Further Reading

https://www.mongodb.com/what-is-mongodb

https://hackernoon.com/mongodb-vs-mysql-comparison-which-database-is-better-e714b699c38b

results matching ""

    No results matching ""