diff options
author | Bernard Gorman <bernard.gorman@gmail.com> | 2018-10-15 14:13:53 -0400 |
---|---|---|
committer | Bernard Gorman <bernard.gorman@gmail.com> | 2018-10-23 00:19:01 +0100 |
commit | 1e19472175d9f8c26d2cc1a80e108a0a4a761213 (patch) | |
tree | ff798bd9801eb65585ee8096a86f0461373f1833 /src/mongo/db/query/plan_cache_indexability.cpp | |
parent | 10ec78a0ea0adca815df5a5cb9f3bf9f7d2221f6 (diff) | |
download | mongo-1e19472175d9f8c26d2cc1a80e108a0a4a761213.tar.gz |
SERVER-37566 Avoid recreating ProjectionExecAgg on each expansion of a wildcard index
Diffstat (limited to 'src/mongo/db/query/plan_cache_indexability.cpp')
-rw-r--r-- | src/mongo/db/query/plan_cache_indexability.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/query/plan_cache_indexability.cpp b/src/mongo/db/query/plan_cache_indexability.cpp index b1cbafc2b7f..488e40d7cc1 100644 --- a/src/mongo/db/query/plan_cache_indexability.cpp +++ b/src/mongo/db/query/plan_cache_indexability.cpp @@ -118,11 +118,7 @@ void PlanCacheIndexabilityState::processWildcardIndex(const IndexEntry& ie) { invariant(ie.type == IndexType::INDEX_WILDCARD); _wildcardIndexDiscriminators.emplace_back( - WildcardKeyGenerator::createProjectionExec(ie.keyPattern, - ie.infoObj.getObjectField("wildcardProjection")), - ie.identifier.catalogName, - ie.filterExpr, - ie.collator); + ie.wildcardProjection, ie.identifier.catalogName, ie.filterExpr, ie.collator); } void PlanCacheIndexabilityState::processIndexCollation(const std::string& indexName, |