Learn Simpli

Free Online Tutorial For Programmers, Contains a Solution For Question in Programming. Quizzes and Practice / Company / Test interview Questions.

Introduction to MongoDB and its features

 

MongoDB and its Advantages

What is MongoDB, MongoDB is a Database Management System that comes into a NoSQL database category. And MongoDB is an open-source tool. The main feature of MongoDB is its document-oriented Database. MongoDB helps in the scalability and flexibility of high volume data systems. The document model of MongoDB makes it very simple and easy to learn for all developers.

Advantages of MongoDB?
Listing unique features of MongoDB, those are rare and difficult to achieve in RDBMS.

Makes development easy:
The document model of MongoDB makes it very simple and easy to learn for all developers.

Stores data JSON:
MongoDB Database system stores data inflexible way. The format of the document is like JSON.

Dynamic schema:
For storing the data in tables, the developer has to define the table schema. The MongoDB removes this limitation by allowing you to insert data without a predefined schema. And developers can make changes easily without interruption.

Super Fast:
MongoDB doesn’t support JOIN and Global transactions and this gives the best performance when it comes to the very large amount of unstructured data. That can not be achieved by RDBMS.

Flexible:
MongoDB does not require its documents to have the same schema before storing the data. Whenever you add the new fields, MongoDB automatically updates the documents to the new structure.

Versatile :
MongoDB provides a variety of storage engines. And you can choose one most suited to your application. MongoDB supports a versatile storage system that is best suited when handling large files.

Availability:
Because of replica sets in MongoDB, If one of the servers in your replica set goes down for any reason, the others will continue to operate and your database will remain online.

Scalability:
MongoDB has a sharding feature, Because of this MongoDB can grow horizontally through native sharding.

Workload Isolation:
Because of replica sets in MongoDB, only one node can be the “primary” at any given time, and only the primary node can accept the database writes. The other nodes, the “secondaries”, can become the primary if the original primary node goes down. The secondaries can also be safely used for database reads at any time.

Locality:
Place data on specific devices and in specific geographies for governance, class of service, and low-latency access.

Portability:
Database that runs the same everywhere.

When to use MongoDB?
MongoDB is more suited in the below scenarios
When your application needs Document-based storage or non-structured data.
When your application needs call for reading/writing a lot of data.
When your application doesn’t need integrity checks on existing data.
When your application represents data as independent packages of information.

Disadvantages of MongoDB?
No model for referential integrity
Don’t avoid data redundancy.
No joins.
No transactions.

Also read, What is the difference between MongoDB and MySQL?

2 thoughts on “MongoDB and its features

Comments are closed.