Introduction to MongoDB

Introduction for MongoDB

MongoDB is a leading NoSQL database. MongoDB is written in the C++ programming language. MongoDB is a cross-platform, document-oriented database that provides, high performance, high availability, and easy scalability. MongoDB works on concept of collection and document. The data is saved in MongoDB as a Json document. The key benefit here is that the data structure may be modified at any moment. The documents in this section can be turned into objects, making them easier to deal with. It is also feasible to examine data more quickly because to MongoDB’s efficiency. Keep in mind that MongoDB is powered by the Spyder monkey engine.


Mongo’s collections are analogous to tables in relational databases. They have the ability to hold multiple JSON documents.

In SQL, ‘documents’ are the same as records or rows of data. While a SQL row can refer to data from other tables, Mongo documents typically combine this information.

In a SQL table, fields or attributes are similar to columns.

While Mongo does not have a schema, SQL does so through the table definition. A Mongoose schema is a document data structure (or document shape) that is enforced through the application layer.

‘Models’ are higher-order constructors that take a schema and turn it into a document instance that corresponds to records in a relational database.

Advantages of MongoDB over RDBMS

· Schema less

· Structure of a single object is clear.

· No complex joins.

· Easy to scale.

· The ability to query deeply. MongoDB uses a document-based query language that is nearly as powerful as SQL to support dynamic queries on documents.

· There is no need to convert or map application objects to database objects.

Why use MongoDB?

· Document oriented Storage

· Index on any attribute

· Auto-sharding

· Rich queries

· Fast in place updates

· Big Data

· Mobile and social infrastructure

· User data management

· Data hubs

· Content management and delivery

· Embedded data Model

· Normalized Data Model

How to install MongoDB community Server

Go through this link and download community server for free

MongoDB Community Download | MongoDB

Install it and open

Then connect local data base or connect online MongoDB data base using link.

Now you can use inbuilt command line interface to use MongoDB you don’t want any manual configurations.

thank you!



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store