[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: |
|
||||||||||||||||||||
| 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: |
| 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: |