Introduction to NoSQL Databases and MongoDB
There are different types of database management systems:
- RDBMS (Relational Database Management Systems)
- NoSQL (Not only SQL)
- OLAP (Online Analytical Processing)
Today we’re going to know about NoSQL databases & MongoDB. Let’s get started:
Table of Contents
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:
- Document Databases: It stores data in documents similar to JSON objects.
- 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.
- Wide-Column Stores: It stores data in tables, rows, and dynamic columns.
- 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:
That’s all. Thank you. ?Md Obydullah
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.