Quantcast
Channel: MongoDirector Blog » Aggregation framework
Viewing all articles
Browse latest Browse all 2

MongoDB shards and unbalanced aggregation loads

0
0

The aggregation framework is a vital cog in the mongodb infrastructure. It helps you analyze, summarize and aggregate the data stored in mongodb. Refer to this blog post for more details about the aggregation framework in MongoDB 2.6.

In the 2.6 release MongoDB made a subtle but significant change in the way the underlying aggregation pipelines execute in a sharded environment. When working with sharded collections MongoDB splits the pipeline into two stages. The first stage or the “$match” phase runs on each shard and selects the relevant documents. If the query planner determines that a shard is not relevant based on the shard keys then this phase is not executed on that shard.

Continue reading


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images