Details
-
Sub-task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
QE 2023-05-15
Description
serializeDollarDbInOpDescription() is a fairly expensive call as it calls BSONObj::AddField() which makes an entirely new copy of the object. This is done on every query so it's a hot path.
We can skip it if we're not in multi-tenant mode, which is an easy check.