[SERVER-27308] Reduce cost of sharding check in DocumentSourceLookup Created: 06/Dec/16  Updated: 07/Jul/17  Resolved: 09/Jan/17

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 3.5.2

Type: Improvement Priority: Major - P3
Reporter: James Wahlin Assignee: James Wahlin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-27616 Fix $lookup/$graphLookup foreign coll... Backlog
is related to SERVER-24960 Shard may not realize that collection... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4
Sprint: Query 2017-01-23
Participants:
Linked BF Score: 0

 Description   

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



 Comments   
Comment by Githook User [ 09/Jan/17 ]

Author:

{u'username': u'jameswahlin', u'name': u'James Wahlin', u'email': u'james.wahlin@10gen.com'}

Message: SERVER-27308 Reduce cost of sharding check in DocumentSourceLookup
Branch: master
https://github.com/mongodb/mongo/commit/166a9663a3cb627f36873ffa104a60c0c935393c

Generated at Thu Feb 08 04:14:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.