In this article, we learn MongoDB data modeling.My main focus describes its simple steps.MongoDB document in the same collection has no need to same structure.the second thing in MongoDB same field has different data.third thing MongoDB has a dynamic schema.the difference between SQL and MongoDB Concept show below fig.
You should also read my previous articles.In which I explained. MongoDB aggregation working and MongoDB Map-reduce working step by step guideline.
Characteristics of MongoDB
- MongoDB rich document
- pre-join and embedded data
- No constraints
- Atomic operation
- No, declare schema
Schema in SQL
Shema is a container in which all database tables are logically related. Provides user permission and authorized access to the user.the following below Bus Ticket system schema in SQL which contains four table.
Schema in MongoDB
the following below Bus Ticket system schema in MongoDB which contains four Collection.
"departure time": 3:30,
"Arrival time": "8:30",
So while displaying the data, in MongoDB.the data will be shown one collection only. but as compare SQL needs to join the table.show above fig.
I wish I could tell you that a great site of MongoDB.you just understands key element above post-MongoDB Data Modeling.You also read my previous lecture.I hope you will understand this lecture.Thank you for reading this lecture. Hope you got the idea. please share it.