O'Reilly logo

MongoDB Data Modeling by Wilson da Rocha França

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Designing a document

At this point, I believe you must be asking yourself: if the basic structure of the document is JSON (something so simple and textual), what can be so complex about the creation of a NoSQL database?

Let's see! First of all, yes! You are right. NoSQL databases can be very simple. But, this does not mean that their structure will be less complex than that of a relational database. It will be different, though!

As previously mentioned, collections do not force you to define the document's structure beforehand. But this is certainly a decision that you must make at some point. This decision will affect important aspects, especially in matters regarding a query's performance.

By now, you are likely to have also asked yourself how ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required