Skip to content

Commit 7cf8a21

Browse files
authored
DOCS-15730 Add planningTimeMicros to profiler output (#2353)
* DOCS-15730 Add planningTimeMicros to profiler output * Internal feedback 1 * add query planning link
1 parent b316542 commit 7cf8a21

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/reference/database-profiler.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ operations on a standalone:
107107
"responseLength" : 1305014,
108108
"protocol" : "op_msg",
109109
"millis" : 69132,
110+
"planningTimeMicros" : 129,
110111
"planSummary" : "IXSCAN { a: 1, _id: -1 }",
111112
"execStats" : {
112113
"stage" : "FETCH",
@@ -192,6 +193,7 @@ operations on a standalone:
192193
}
193194
},
194195
"millis" : 164687,
196+
"planningTimeMicros" : 129,
195197
"planSummary" : "COLLSCAN",
196198
"execStats" : {
197199
"stage" : "UPDATE",
@@ -668,6 +670,13 @@ operation.
668670
:binary:`~bin.mongod` from the beginning of the operation to the end of
669671
the operation.
670672

673+
.. data:: planningTimeMicros
674+
675+
.. versionadded:: 6.2
676+
677+
The time, in milliseconds, that the ``find`` or ``aggregate`` command
678+
spent in :ref:`query planning <query-plans-query-optimization>`.
679+
671680
.. data:: system.profile.planSummary
672681

673682
A summary of the execution plan.

0 commit comments

Comments
 (0)