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

Change ShardRegistry::_connStringLookup to store connection strings as std::strings

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v4.4
    • 115

    Description

      SERVER-47359 added a new map '_connStringLookup' that stores mappings from connection strings to Shard objects. We saw a decent perf hit after SERVER-47359 was committed. A small and easy fix to gain perf back is to change '_connStringLookup' to store connection strings as std::strings instead of ConnectionString objects to avoid having to parse the "shardId" parameter passed to ShardRegistry::getShard and ShardRegistry::getShardNoReload to a ConnectionString each time.

      Attachments

        Activity

          People

            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: