[SERVER-27306] Remove AutoGetCollection* methods that take std::string namespace Created: 06/Dec/16  Updated: 05/Apr/17  Resolved: 19/Dec/16

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.4.2, 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
Backwards Compatibility: Minor Change
Sprint: Query 2017-01-23
Participants:
Linked BF Score: 0

 Description   

The AutoGetCollection* methods that take a std::string for the namespace will then create a NamespaceString object, which is an expensive operation. In many cases we pass a std::string when we already have a NamespaceString or could create a single instance shared across multiple calls.



 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-27306 Pass NamespaceString to AutoGetCollectionForRead

Pass NamespaceString to AutoGetCollectionForRead in pipeline_d.cpp
isSharded(). This commit is a partial cherry-pick of
f3d3087a9f5c900cca6b9f69b7c07b69f69fb1d9, a broader 3.5 commit.
Branch: v3.4
https://github.com/mongodb/mongo/commit/8dc73e878d9242b2e7fb9660e1f2f3b1e86cddd9

Comment by Githook User [ 19/Dec/16 ]

Author:

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

Message: SERVER-27306 Remove AutoGetCollection methods with std::string namespace
Branch: master
https://github.com/mongodb/mongo/commit/f3d3087a9f5c900cca6b9f69b7c07b69f69fb1d9

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