DEV Community

5 quick rules on modeling your MongoDB's schemas

Manuel Romero on April 12, 2018

NoSQL databases are a relatively recent technology and so that there are a lot of questions about when and how to use them. I have read a lot of...
Collapse
 
mlynn profile image
Michael Lynn

Nice, succinct tips, Manuel! When it comes to MongoDB Document Structure: Data that will be accessed together should be stored together. This means (as you've stated) that as it relates to embedding - do it where possible - but look at your application's read/write profile to inform these decisions.

Collapse
 
mrm8488 profile image
Manuel Romero

Hi, sorry for answering so late. Right indexing improve so much the performance. And you have the "aggregation framework" that is so powerful for complex queries. If you have a concrete doubt, let me know it.

Collapse
 
jdheyburn profile image
Joseph Heyburn

Hey, the last link in the article is broken:
dev.to/mrm8488/mongodb-schema-desi...

Collapse
 
mrm8488 profile image
Manuel Romero

Check it now!