File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -565,9 +565,17 @@ representative. Your output may differ significantly.
565
565
.. data:: explain.executionStats.executionTimeMillis
566
566
567
567
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
+
571
579
572
580
.. data:: explain.executionStats.totalKeysExamined
573
581
You can’t perform that action at this time.
0 commit comments