Company
Date Published
Author
MongoDB
Word count
619
Language
English
Hacker News points
None

Summary

While transitioning to MongoDB from MySQL for their cloud-based Stratis product, FireScope Inc. found that using the MongoDB java driver was three times faster than using SpringData, a reflection-based solution. When retrieving documents, returning only needed fields can deliver a nine times performance improvement. Aggregate data by nesting as much as possible to reduce index size and improve future access. Allocating documents with sufficient space early and updating them later can provide optimal document creation and update approaches.