In MongoDB, we have to base our modeling on our application-specific data access patterns. Finding out the questions that our users will have is paramount to designing our entities. In contrast to an RDBMS, data duplication and denormalization are used far more frequently, for good reason.
The sorting order of different types of data, from highest to lowest, is as follows:
Max. key/Regular expression/Timestamp/Date/Boolean/ObjectID/Binary data/Array/string/Numbers/Null/Min. key
- Index early and often
