[SERVER-7656] Optimize aggregation on sharded setup if first stage is exact match on shard key Created: 13/Nov/12  Updated: 24/Mar/16  Resolved: 28/May/15

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 3.0.9, 3.1.4

Type: Improvement Priority: Major - P3
Reporter: Gernot Pansy Assignee: Charlie Swanson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-18444 Improve explain output of aggregation... Closed
related to SERVER-23330 Optimize aggregation on sharded setup... Closed
is related to SERVER-18940 Optimise sharded aggregations that ar... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Quint Iteration 3, Quint Iteration 4
Participants:

 Description   

If only one shard is involved in an aggregate operation, handle this like an aggregation on non-sharded setups.

This will improve performance and reduce memory and network activity for many sharded setups, where the shardkey is for example the userId.



 Comments   
Comment by Githook User [ 13/Jan/16 ]

Author:

{u'username': u'cswanson310', u'name': u'Charlie Swanson', u'email': u'charlie.swanson@mongodb.com'}

Message: SERVER-7656 Execute aggregation command on targeted shard if first stage is an exact match on shard key
Branch: v3.0
https://github.com/mongodb/mongo/commit/3eeeaec1d1fbb41d1914e82deca2cac4fccdddc2

Comment by Githook User [ 28/May/15 ]

Author:

{u'username': u'cswanson310', u'name': u'Charlie Swanson', u'email': u'charlie.swanson@mongodb.com'}

Message: SERVER-7656 Execute aggregation command on targeted shard if first stage is exact match on shard key
Branch: master
https://github.com/mongodb/mongo/commit/7d526bbc47681fd297d38cdc577a9a7d710f7a99

Generated at Thu Feb 08 03:15:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.