MongoDB Data Modeling Concepts

0
731

Introduction

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.

Alt tag MongoDB Data modeling

Prerequisite

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.

Alt tag MongoDB data modeling

Schema in MongoDB

the following below Bus Ticket system schema in MongoDB which contains four Collection.

So while displaying the data, in MongoDB.the data will be shown for one collection only. but as compare SQL needs to join the table.

Conclusion

I wish I could tell you that a great site of MongoDB.you just understands the 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.

 

 

 

 

Previous articleMongoDB Map-reduce working-Programmershelper
Next articleMongoDB Aggregation Working
My name is Muhammad Zubair. I want to help you a lot of things that a blog provide. You feel free to ask the question anytime you might have! While most recently, he tends to share her wealth of knowledge and expertise on SEO, link building, inbound marketing,