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

Reduce cost of sharding check in DocumentSourceLookup

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.2
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible
    • v3.4
    • Query 2017-01-23
    • 0

      _mongod->isSharded() is called with every DocumentSourceLookUp::getNext() call. This call is expensive as it acquires a lock via AutoGetCollectionForRead.

            Assignee:
            james.wahlin@mongodb.com James Wahlin
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: