executionTime in explain

22 views
Skip to first unread message

Monika Shah

unread,
Feb 10, 2018, 12:54:55 PM2/10/18
to mongodb-dev
Does executionTimeMillis include CPU time, disk access time, network time?

Kevin Adistambha

unread,
Apr 4, 2018, 2:07:53 AM4/4/18
to mongodb-dev

Hi Monika

As mentioned in the executionTimeMillis section of the explain output, it is the “Total time in milliseconds required for query plan selection and query execution. “.

This would count the time the server required to answer the query, but will not include the time it will take to communicate the result back to the client. That is, it will include CPU time, disk time, etc. but not network time.

Best regards
Kevin

Reply all
Reply to author
Forward
0 new messages