5
Optimizing Pipelines for Sharded Clusters
In this chapter, you will learn about the potential impacts on performance when your aggregation pipelines run in a sharded cluster. You will discover how the aggregation runtime distributes aggregation stages across the cluster and where potential bottlenecks can occur. Finally, you will learn the recommended steps to ensure your pipeline's performance scales efficiently in a sharded cluster.
This chapter will cover the following:
- What sharded clusters are
- Sharded aggregation constraints
- The sharded distribution of pipeline stages
- Performance tips for achieving efficient sharded aggregations
Let's start with a summary of the concept of sharding in MongoDB.
A brief summary of MongoDB sharded clusters ...
Get Practical MongoDB Aggregations now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.