Details
Description
When the mergerPart of an aggregation contains Javascript, we need to pick a shard to do the merge, because mongos doesn't support Javascript today. On allowing Javascript execution on mongos, we can instead keep the merge local. This will be useful for reducing latency (one fewer hop), and for reducing the load on the shards (by moving the work to mongos).
Attachments
Issue Links
- depends on
-
SERVER-45455 Use a merging shard to prevent JS failing on mongos
-
- Closed
-
- is documented by
-
DOCS-13387 Investigate changes in SERVER-45456: Allow JavaScript on mongos
-
- Closed
-
- is duplicated by
-
SERVER-42637 Add server-side JavaScript support to mongos
-
- Closed
-