[COMPASS-3870] Default names for compound indexes are incorrect Created: 04/Sep/19 Updated: 29/Oct/23 Resolved: 27/Sep/19 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Indexes |
| Affects Version/s: | None |
| Fix Version/s: | 1.20.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ronan Bohan | Assignee: | Durran Jordan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Sprint: | Iteration Newt |
| Description |
|
Playing around with index creation in the latest version of Compass that I've just downloaded (v 1.19.6) I noted that the default name for compound indexes only uses the name of the first field rather than the names of all fields in the index. |
| Comments |
| Comment by Githook User [ 27/Sep/19 ] |
|
Author: {'username': 'durran', 'email': 'durran@gmail.com', 'name': 'Durran Jordan'}Message: |
| Comment by Githook User [ 27/Sep/19 ] |
|
Author: {'username': 'durran', 'email': 'durran@gmail.com', 'name': 'Durran Jordan'}Message: |
| Comment by Githook User [ 27/Sep/19 ] |
|
Author: {'username': 'durran', 'email': 'durran@gmail.com', 'name': 'Durran Jordan'}Message: |
| Comment by Githook User [ 27/Sep/19 ] |
|
Author: {'name': 'Durran Jordan', 'username': 'durran', 'email': 'durran@gmail.com'}Message: |
| Comment by Ronan Bohan [ 04/Sep/19 ] |
|
See this example:
Specifically the index was created in Compass using fields score and gamertag but the index was named score_1. I only noticed this because I already had a score_1 index (on just the score field) and it wouldn't let me create a second index with the same name. The expected behavior here is that the compound index should be called score_1_gamertag_1 |