Home » MongoDB

A deep dive into Mongo Database

Here, we are going to learn about a deep dive into mongo database (MongoDB).
Submitted by Mansha Lamba, on November 07, 2018

More popularly known as "mongoDB". It is a no-sql based database.

BASIC STRUCTURE OF MONGO DB

MongoDB structure

A COLLECTION IN MONGODB having 3 DOCUMENTS

MongoDB structure

ADVANTAGES OF MONGODB OVER SQL BASED DBS

  • Flexibility
    In comparison to a SQL based database, MongoDB is far more flexible.
    First, it supports a much wider array of datatypes. Secondly, unlike SQL based database which are composed of tables and columns it is based on JSON( Javascript Object Notation). MongoDB is of a graph like pdf format. Thus, within a collection, each document can have different schema/data model making MongoDB very flexible and less opinionated.
  • Availability
    MongoDB makes more than one replicas of the primary database. Thus storing the same data at multiple locations. So, that traffic gets divided between multiple locations, therefore, ensuring fast retrieval of data even in cases of a large number of transactions.
  • Readability
    Computers parse data in MongoDB which is in JSON format at a much higher rate as compared to SQL- based database. Moreover for even human beings data in MongoDB is much more readable rather than tedious tables and columns used in SQL DBS.

MONGODB COMPASS

It is a software developed by MongoDB enterprise which provides a user interface for viewing our mongo database. It also supports CRUD operations, Querying of our database. Also enables the filtering of data in the database via equality, inequality and geospatial filters. It even provides an analytical summary of data in each collection.

MONGODB SHELL

  • Provides all the functionality provided by mongo compass.
  • The difference is that it is not GUI tool rather it is an interpreter wherein user writes commands.
  • Based JavaScript programming language.



Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.