-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Query 2020-01-13, Query 2020-01-27
When compound hashed shard key has a range prefix, if the query predicate is on the prefix and the projection doesn't include hashed fields then the query can be covered.
The current behaviour for hashed shard keys is, we always fetch the documents on the shards to make sure that the document is not an orphan. When the projection and query doesn't include hashed fields, the document fetch can be avoided.