MongoDB NoSql Database Overview

The blog discuss on the common topics like What is MongoDB NoSQL Database ? What is document-oriented database ? Why MongoDB NoSQL Database is preferred than traditional RDBMS Database ?

What is NoSQL Database ?

The IT applications were extensively using the Relational databases like Oracle, SQL Server, MySQL for storing and retrieving the data. But with the upcoming trend of mobile applications like Facebook, Twitter and increasing demand for online shopping, has changed the trend of how application were managing and updating the application and customer data. In Relational Database, we need to create schemas, table, Indexes , define attribute data types, etc for database operations like create, update and delete records.

NoSQL database doesn’t requires these operations as prerequisite and can be executed on the fly to create, update and delete records which makes it easier to use and provides high performance.

What is MongoDB Database?

The MongoDB database is a cross platform NoSQL document-oriented database used for high volume data storage. MongoDB is an open -source database developed by the company 10gen. MongoDB was released in March 2010.

Why MongoDB ?

The MongoDB being a document-oriented database where database is a physical container for collections (set of file in the file system) whereas RDBMS Database consider each table data as a storing element. A collection is a group of documents with different fields maintained in the database with no enforced schema. The documents in the collection maintains a key-value pair which makes it useful for storing dynamic data (storing field with different types and structure). The key-value pair in MongoDB helps in providing high performance and scalability. The below given are the MongoDB features:

  • MongoDB is schema -less as it is document-oriented database using collections for storing documents
  • MongoDB allows to store different fields with different content and size in the document
  • MongoDB avoids complex joins for retrieving the data
  • MongoDB provides dynamic query for document data retrieval
  • MongoDB is scalable
  • MongoDB provides high performance
  • MongoDB is easy to use
  • MongoDB is light weight
  • MongoDB is much faster when compared with Relational Databases
  • provides Auto-sharding for horizontal scalability
  • provides built in replication for high availability

Difference between RDBMS and MongoDB ?

RDBMS DatabaseMongoDB Database
Relational Database requires schema, table creation, indexes, define attribute types to create, update and delete records MongoDB allows to create, update and delete records on the fly and does not require table structure.
RDBMS is a heavy weight Database MongoDB is a light weight database
RDBMS uses table as storing elementsMongoDB uses collections for storing documents
RDBMS supports multiple schema MongoDB stores dynamic data using documents and supports JSON format
RDBMS is slow when used for big and complex data MongoDB is much faster for big and complex data