SERVER-139245Needs Scheduling

Investigate preparation of complex plans

The subtree for each thread is now "prepared" from within the main thread, so that we can reuse the CollectionAcquisition already obtained by it. This could be not optimal if the plan preparation is costly (e.g. when compiling several projection expressions) so we could use each thread to do their own preparation. In any case verify if the current solution (running inside the main thread) doesn't expose to deadlock scenarios (e.g. prepare() tries to use the transaction associated to the produ

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.