So looking for some guidance / help on how best to design my schema objects. So this is a very rough design I might create for a new system to manage users within an organisation to help them track their progress.
Hi Owen,
It’s been a while since you posted this question, have you found a suitable schema for your application ?
Generally, the suitability of the schema design is tied closely to how the application interacts with the data. See also Data Modeling Introduction.
A number of comments based on your example:
UserContacts should be an array UserProfile should be an arrayskills would be within array of an array, find out how the application would query this, and whether it meets the criteria. i.e. performance. The above are just few example comments to consider based on what you’ve provided. Analyse how the application interacts with the data more to discover benefits/weakness of different schemas.
See also Blog: 6 Rules of Thumb for MongoDB Schema Design
Regards,
Wan.