[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:
Backports
Problem/Incident
causes SERVER-52589 Index key consistency check during FE... Closed
Related
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: SERVER-46946 Optimize BtreeKeyGenerator::getKeys for non-multikey indexes

(cherry picked from commit c91a2f5932ac08ca28b25ce11b8ac4949552e271)
Branch: v4.4
https://github.com/mongodb/mongo/commit/30088474306375095a67244fcf55391d4ccb02a5

Comment by Githook User [ 21/Mar/20 ]

Author:

{'name': 'Anton Korshunov', 'username': 'antkorsh', 'email': 'anton.korshunov@mongodb.com'}

Message: SERVER-46946 Optimize BtreeKeyGenerator::getKeys for non-multikey indexes
Branch: master
https://github.com/mongodb/mongo/commit/c91a2f5932ac08ca28b25ce11b8ac4949552e271

Generated at Thu Feb 08 05:12:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.