Reduce contention on ShardingState::_mutex for find workloads

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.6.0-rc4
    • Component/s: Querying, Sharding
    • None
    • Sharding
    • ALL
    • Sharding 2017-12-04
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The find code path currently calls CollectionShardingState::get at least 4 times for preparing a single query.

      This causes contention on ShardingState::_mutex, which eventually gets called by that function.

      Through some code reshuffling we should be able to remove two of these calls.

            Assignee:
            [DO NOT USE] Backlog - Sharding Team
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: