Introduction to NoSQL Databases and MongoDB

There are different types of database management systems:

  1. RDBMS (Relational Database Management Systems)
  2. NoSQL (Not only SQL)
  3. OLAP (Online Analytical Processing)

Today we’re going to know about NoSQL databases & MongoDB. Let’s get started:

Table of Contents

  1. NoSQL Databases
  2. Types of NoSQL Databases
  3. When Need NoSQL
  4. Introduction to MongoDB
  5. Features of MongoDB

NoSQL Databases

According to Wikipedia, A NoSQL database provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases.

There are some limitations of relational database. To overcome the limitations of relational databases, NoSQL databases were introduced. If you need to play with huge amount of data then NoSQL database is your best choice. NoSQL stores data in JSON format.

Types of NoSQL Databases

There are 4 major types of NoSQL databases:

  1. Document Databases: It stores data in documents similar to JSON objects.
  2. Key-value Databases: It is a data storage paradigm designed for storing, retrieving, and managing associative arrays, and a data structure more commonly known today as a dictionary or hash table.
  3. Wide-Column Stores: It stores data in tables, rows, and dynamic columns.
  4. Graph Databases: It stores data in nodes and edges.

When Need NoSQL

Before choosing NoSQL, you have to keep these things in mind:

  • The relationship between data isn’t important.
  • Store and retrieve huge amounts of data.
  • Constraints and Joins support are not required.
  • The data is not structured & changing.

Introduction to MongoDB

MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. MongoDB is an example of NoSQL Document Databases.

Here’s the structure of data:

{
   name: "Md Obydullah",
   email: "[email protected]",
   website: "mynotepaper.com"
}

Features of MongoDB

Let’s have a look at the features of MongoDB:

image from mindmajix dot com
That’s all. Thank you. ?

Software Engineer | Ethical Hacker & Cybersecurity...

Md Obydullah is a software engineer and full stack developer specialist at Laravel, Django, Vue.js, Node.js, Android, Linux Server, and Ethichal Hacking.