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.