by The data is stored in a JSON-like format and can contain different kinds of structures. For example, in the same collection we can have the next two documents: To get the best out of MongoDB, you have to understand and follow some basic database design principles.
To maintain a good performance of your database, you have to implement a smart indexing system that will streamline your write and read operations.
A thorough understanding of MongoDB combined with a clear view of what you want to achieve with the database is the recipe for good database design.