Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-102416

Avoid unnecessary steps in service_entry_point_shard_role

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Query Execution
    • Fully Compatible
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      service_entry_point_shard_role.cpp currently performs a few unnecessary steps:

      • retrieve dbName here without using it
      • retrieve dbName here without using it
      • create a temporary ExecutionContext object only to assign it to an ExecutionContext object here

      All of these steps can likely be removed. This will save a few cycle on every request.

            Assignee:
            jan.steemann@mongodb.com Jan Steemann
            Reporter:
            jan.steemann@mongodb.com Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None