Amazon DocumentDB (with MongoDB compatibility) announces upgraded query planner that can run queries up to 10x faster

Amazon DocumentDB Query Planner Update
Amazon DocumentDB (with MongoDB compatibility) has introduced a new query planner, PlannerVersion 2.0, delivering up to 10x performance improvement over the prior version. This update features advanced query optimization capabilities and improved performance, particularly with find and update operators using indexes. Key enhancements include:
- Optimal Index Plans: More efficient index plans.
- Index Scan Support: Enabled for operators like $neq, $nin, and nested $elementMatch.
- Better Cost Estimation: Improved techniques for query cost estimation.
- Optimized Algorithms: Enhanced stability and performance.
- Simplified Query Syntax: No need for explicit hints for $regex queries to utilize indexes.
What to do
- Enable PlannerVersion 2.0 by modifying the parameter in your cluster parameter group.
- No cluster restart or downtime is required.
- Easily revert to the legacy query planner if needed.
Source: AWS release notes
If you need further guidance on AWS, our experts are available at AWS@westloop.io. You may also reach us by submitting the Contact Us form.



