Chapter 6. Performance Tuning
After understanding the basic concepts of documents, relations between documents, and how to query them, it's now time to see how we can improve the performance of Mongoid and MongoDB.
Though MongoDB is already known for its fast reads and writes, it's important to set it up and configure it properly. After that, it's important to set the right indexes for the data we have. Finally, it's important to monitor slow queries and optimize them.