top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to model a Tree based database using MongoDB?

+1 vote
280 views

I have an application that will store data in a an entity called Department.For this department i will have SUBDEPARTMENT1, SUBDEPARTMENT2 and SUBDEPARTMENT3 Now, I want to store massive data in database.those data are students. In RDBMS.the modelisation is simple. Just having one Entity called department and the 3 subdepartment will inherit from the father department. Can you please tell me how to model this in MongoDB?

I know subCollection but it does not look good because I will have also a collection called department that i will be able to store data in it.

posted Aug 14, 2017 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

...