MongoDB recently released version 2.6. This is a major release with significant improvements in performance, manageability, security and availability areas. As per the vendor, this release also builds the foundation of the much-talked MongoDB concurrency to be available in the next 2.8 release.
Here I’ve mentioned some areas that interested me. Please refer the complete release note from vendor’s website for more details.
- Aggregation related enhancements – Now there is no restriction on the size of result set returned by the aggregation pipeline. Aggregation now can return cursor or write output to a collection. Aggregation framework now also started supporting variables.
- Query optimizer improvements – This may be the most noticeable improvement in the 2.6 release. Query planner engine is completely rewritten to improve performance and scalability. New features like index intersection are introduced that now can use more than one index to determine the best query execution plan. Index filters and query plan cache methods add more sophistication to the query plan engine.
- Index related enhancements – Now, secondaries can build indexes in the background. With this enhancement, now you can build indexes (in the background) in the secondaries – letting the indexing operation available to be used for other operations. Previously, this was possible only for primaries. Another improvement is the ability to resume interrupted index builds.
- Storage related – This version uses PowerOf2Sizes as default allocation strategy for all new collections. Though this strategy will take more storage space, this will result in lower levels of storage fragmentation and more predictable storage capacity planning.
- Security related – MongoDB 2.6 claims several security related enhancements including improved SSL support, improved authorization system with more granular controls, centralized credential storage and improved user management tool.
- Search related – Text search is enabled by default in 2.6. The new operator $text in the aggregation framework will search the text data on the content of fields indexed on a text index.
Additional Read / Reference