-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.0.2
-
Component/s: Sharding
-
None
Say I have a collection with a hashed shard key on field "S".
If I send a query such as: db.coll.find({"S": {$in: [...]}}) with[...] being a relative lengthy list (couple of hundred entries). It seems like all entries in there are send to all shards instead of mongos splitting the query appropriately. As a result, each shard has to check for each of the values.
- duplicates
-
SERVER-1007 rewrite $in queries on shard key to only include keys on each shard
- Backlog