Skip to content

Commit 9253267

Browse files
authored
backport to 7.0 (#5932)
1 parent c3e5270 commit 9253267

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

source/reference/explain-results.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,17 @@ representative. Your output may differ significantly.
565565
.. data:: explain.executionStats.executionTimeMillis
566566

567567
Total time in milliseconds required for query plan selection and
568-
query execution. :data:`explain.executionStats.executionTimeMillis` corresponds
569-
to the ``millis`` field returned by ``cursor.explain()`` in
570-
earlier versions of MongoDB.
568+
query execution. It includes the time it takes to run the trial phase
569+
part of the plan selection process, but does not include the network time
570+
to transmit the data back to the client.
571+
572+
The time reported by ``explain.executionStats.executionTimeMillis`` is
573+
not necessarily representative of actual query time. During steady
574+
state operations (when the query plan is cached), or when using
575+
:method:`cursor.hint()` with ``cursor.explain()``, MongoDB bypasses the
576+
plan selection process, resulting in a faster actual time, leading to
577+
a lower ``explain.executionStats.executionTimeMillis`` value.
578+
571579

572580
.. data:: explain.executionStats.totalKeysExamined
573581

0 commit comments

Comments
 (0)