-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.1.2
-
Component/s: Index Maintenance, Sharding
-
None
If sharding on "a", an index on "a,b" is not considered useful if there are multikey (array) values for "b". Theoretically, it should still be useful (though maybe less efficient than single-key indices), so we should be able to use it if no single-key index that start with "a" exists.
- depends on
-
SERVER-1506 when sharding on a and need an index on a,b allow only a,b index
- Closed
- duplicates
-
SERVER-9620 Index can be made multikey if a prefix of it is a shard key (splitVectors fail)
- Closed
- is duplicated by
-
SERVER-6493 Inserting array value for non-shard-key field used in prefix shard key index succeeds
- Closed