[DOCS-4922] From 2.6 after a collection has been sharded the index of a shard key can be a multi-key index Created: 05/Mar/15 Updated: 27/Jul/16 Resolved: 17/Jun/15 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | mongodb-2.6, mongodb-3.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Gianfranco Palumbo | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | sharding | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Days since reply: | 8 years, 35 weeks ago | ||||||||
| Description |
|
https://github.com/mongodb/docs/blob/master/source/core/index-multikey.txt#L67 |
| Comments |
| Comment by Githook User [ 17/Jun/15 ] |
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: |
| Comment by Githook User [ 17/Jun/15 ] |
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: |
| Comment by Gianfranco Palumbo [ 05/Mar/15 ] |
|
A sharded collection can now have multikey indexes after it has been sharded. However, this is not encouraged as queries that use the multikey indexes will always be slower than normal indexes. Therefore, it is highly recommended to have a dedicated index for the shard key that is not a multikey type if the user wants to use a multikey index on another field. |