[SERVER-47350] Reuse temporary data structures during index builds Created: 06/Apr/20  Updated: 29/Oct/23  Resolved: 09/Apr/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Henrik Edin Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-47001 Reduce number of small buffer allocat... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-04-20
Participants:

 Description   

We instantiate KeyStringSet and MultikeyPaths data structures for every document during index builds. We should be able to reuse these data structures by moving them to a higher level and clearing them between documents.



 Comments   
Comment by Githook User [ 09/Apr/20 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-47350 Add execution context as a decoration to OperationContext

It is meant to be a container for reusing temporary objects within an operation instead of creating and destroying new instances.

At the moment, used for index building where it keeps data structures for KeyStringSet and MultikeyPaths.
Branch: master
https://github.com/mongodb/mongo/commit/64499bcd77a3e4048c90870bc7deb0f61fb4ce6a

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