[SERVER-46946] Optimize BtreeKeyGenerator::getKeys for non-multikey indexes Created: 18/Mar/20 Updated: 29/Oct/23 Resolved: 21/Mar/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance, Querying |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.0-rc0, 4.7.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Anton Korshunov | Assignee: | Anton Korshunov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | qexec-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Backport Requested: |
v4.4
|
||||||||||||||||
| Sprint: | Query 2020-03-23, Query 2020-04-06 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||
| Description |
|
When we generate an index key for a document solely for validation purposes, like in this case, and we know that the index is not multikey, we can optimize the key generation code path and skip all the mutlikey specific logic. |
| Comments |
| Comment by Githook User [ 02/Apr/20 ] |
|
Author: {'name': 'Anton Korshunov', 'email': 'anton.korshunov@mongodb.com', 'username': 'antkorsh'}Message: (cherry picked from commit c91a2f5932ac08ca28b25ce11b8ac4949552e271) |
| Comment by Githook User [ 21/Mar/20 ] |
|
Author: {'name': 'Anton Korshunov', 'username': 'antkorsh', 'email': 'anton.korshunov@mongodb.com'}Message: |