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).
- depends on
-
SERVER-45455 Use a merging shard to prevent JS failing on mongos
- Closed
- is duplicated by
-
SERVER-42637 Add server-side JavaScript support to mongos
- Closed