-
Type: Sub-task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
QE 2023-05-15
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.