Uff, I'm so sorry for my english. It's so hard for me explain my problem in not native language. I have users, users can access to his data, and his data are students, teachers, shceduler, calendar, ... This means, every user have his own data, and this data it's for app tables. I have a mongodb, no sql. Thanks, I hope I explained better now.
W
waldette 2022
@waldette 2022
Posts
-
One big collection or nested collections -
One big collection or nested collectionsHello,
I want to dev an app with users, teachers, students, calendar, scheduler, etc... One user only can access to his own data, never can see other students or calendar of another user (except admin who can access to every data).
I dont know the best model for tthis app with mongodb. What is better:
-
Do every table as a little collection and put a userid key on every table
-
Do one big collection for every user and nested documents or collections for.every table.
What is the best options for a good scalable and performance?
Thanks, i hope u can gelp.me
-