Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68110 Investigate apparent regression in classic engine IDHACK
  3. SERVER-73909

only call serializeDollarDbInOpDescription() in multi-tenant mode

    XMLWordPrintableJSON

Details

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • 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.

      Attachments

        Activity

          People

            colin.stolley@mongodb.com Colin Stolley
            colin.stolley@mongodb.com Colin Stolley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: