diff options
author | Alice Doherty <alice.doherty@mongodb.com> | 2021-07-15 09:27:48 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-10 16:39:18 +0000 |
commit | de7bbb26cda49c907bbbed5c6384c47ae1b050dd (patch) | |
tree | 8424a1fd5375d59fecac07805c5b65642696e41c /src/mongo/db/query/query_solution.h | |
parent | 64dd4524434f617b480e742e8dc421cccd8231fa (diff) | |
download | mongo-de7bbb26cda49c907bbbed5c6384c47ae1b050dd.tar.gz |
SERVER-54083 Include scores calculated by PlanRanker in explain "queryPlanner" output and/or "allPlansExecution"
Diffstat (limited to 'src/mongo/db/query/query_solution.h')
-rw-r--r-- | src/mongo/db/query/query_solution.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/query/query_solution.h b/src/mongo/db/query/query_solution.h index c0d3411dd44..85c41b2b598 100644 --- a/src/mongo/db/query/query_solution.h +++ b/src/mongo/db/query/query_solution.h @@ -382,6 +382,9 @@ public: PlanEnumeratorExplainInfo _enumeratorExplainInfo; + // Score calculated by PlanRanker. Only present if there are multiple candidate plans. + boost::optional<double> score; + private: using QsnIdGenerator = IdGenerator<PlanNodeId>; |