MongoDB is a popular database that stores data JSON-like documents.
It offering high performance, scalability, and easy of use for modern application development.
Example:
{
"username": "Tutorials on web",
"email": "info@tutorialsonweb.com",
"age": 25,
"city": "India"
}
RDBMS Vs MongoDB
S. No. | RDBMS | MongoDB |
1 | It Data Model is Tabular (Ex Rows and Columns) | It Data Model is Document-Oriented (JSON-like) |
2 | Table | Collection |
3 | It used SQL Query Language | It used MongoDB Query Language (MQL) |
4 | Relationships Established via Foreign Keys | Relationships Established via Embedded Documents or References |
5 | Joins Supported | Embedded Documents |
6 | Structured Data | Unstructured or Semi-structured Data |
7 | Primary Key | Primary Key (key _id Default provided by MongoDB itself) |
8 | MySQL, PostgreSQL, Oracle | MongoDB |