What is Mongo DB - What is Mongo DB?

What is Mongo DB?

Posted on

What’s Mongo DB?

MongoDB is an open source database and which is among the main NoSQL database out there available in the market. It’s based mostly on doc and assortment idea which could be very completely different from conventional databases. MongoDB is written in C++ language as constructing blocks.

 

Foremost Advantages of Mongo DB

  • Cross Platform
  • Excessive Efficiency
  • Excessive availability
  • Straightforward scalability

 

Distinction between Mongo DB vs Conventional Databases or RDBMS

Under desk reveals all of the distinction between mongo db and RDBMS. Its reveals you record of terminologies utilized in each the databases methods. On left hand facet we’ve got phrases utilized in mongo db whereas proper facet reveals phrases utilized in conventional databases or RDBMS databases.

 

Assortment Desk
Doc Tuple/Row
Discipline column
Embedded Paperwork Desk Be a part of
key _id Major Key

 

What’s Assortment?

By way of mongo db assortment is assortment or group of paperwork in mongo database. It’s virtually similar idea as TABLE we’ve got in RDBMS database. This assortment encompass a number of paperwork inside every assortment and we are able to a number of collections inside one database. This doc inside assortment can have a number of fields which specify columns in RDBMS database.

NOTE : Assortment would not have any schema that is what no Sql comes into image.

 

What’s Doc?

Doc in context of mongo db is ready of key worth pair which holds knowledge inside assortment and there’s no scheme for doc. You possibly can add additional area or take away from doc based mostly in your want. So paperwork inside assortment can maintain completely different type of knowledge with completely different schema and fields.

 

Major Key in Assortment

Major key in assortment is exclusive key to establish distinctive doc. It’s known as as key _id as properly and encompass key worth pair. This distinctive key’s 12 bytes hexadecimal quantity which is exclusive in assortment. These 12 bytes hexadecimal quantity incorporates first 4 bytes for the present time stamp, subsequent 3 bytes for machine id, subsequent 2 bytes for course of id of MongoDB server and remaining 3 bytes are easy incremental worth.

What is Mongo DB - What is Mongo DB?

 

Supply projectgeek.com