Reduce cost of sharding check in DocumentSourceLookup

XMLWordPrintableJSON

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

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

            Assignee:
            James Wahlin
            Reporter:
            James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: