6 Rules For MongoDB Schema Design

If you are a beginner in MongoDB like I am, Here are some of the things I’ve learned while using MongoDB.

When designing a MongoDB schema, start with a question that you’d never consider when using SQL. What is the cardinality of the relationship? You need to characterize your “One-to-N” relationship with one-to-few, one-to-many, and  one to squillions. This depends on what type of format you’ll use to model the relationship.

In this post, we’ll show you the difference of each relationships. Even at the basic level, there is more to think about when designing a MongoDB schema.

Read the rest of the post here: http://blog.mongodb.org/post/87200945828/6-rules-of-thumb-for-mongodb-schema-design-part-1

Leave a Reply

Your email address will not be published. Required fields are marked *