Introduction to MongoDB

Introduction to MongoDB

ยท

1 min read

MongoDB is one of the most popular NO-SQL databases. The word is derived from humongous.

It's a relatively new breed of database that has no concepts of tables, joins, foreign keys, transactions etc.

It is an open-source document-oriented database developed by MongoDB inc. in 2009.

So MongoDB doesn't use table, row, column format to store data, rather it uses a storage format called BSON which is similar to JSON.

MongoDB is used for high volume data storage.

A simple MongoDB structure :

{
  name:'Jack',
  age:22,
  city:'brooklyn'
}

Key components of MongoDB Architecture

Database

It is a physical container for data. We can store multiple databases on a single MongoDB server.

Document

A set of key-value pairs is known as Document.

Basically, a record is called a document that is associated with a dynamic schema. The benefit of having a dynamic schema is that a document in a single collection does not have to possess the same structure or field.

Collection

This is a grouping of MongoDB documents.

Consider the collection as Table in RDBMS. The entire collection exists within a single database.

There is no schema when it's come to a collection.

Read the complete post on our site Introduction to MongoDB

Read others posts on our site MeshWorld

Hope you like this!

Keep helping and happy ๐Ÿ˜„ coding