• The limit() method 

• The batchSize() method 

Note: When MongoDB writes query profile information to the log, the responseLength (page 295) value is in a field named reslen . 

system.profile. millis 

The time in milliseconds from the perspective of the mongod from the beginning of the operation to the end of the operation. 

system.profile. execStats 

Changed in version 3.0. 

A document that contains the execution statistics of the query operation. For other operations, the value is an empty document. 

The system.profile.execStats (page 296) presents the statistics as a tree; each node provides the statistics for the operation executed during that stage of the query operation. 

Note: The following fields list for execStats (page 296) is not meant to be exhaustive as the returned fields vary per stage. 

system.profile.execStats. stage 

New in version 3.0: stage (page 296) replaces the type field. 

The descriptive name for the operation performed as part of the query execution; e.g. 

• COLLSCAN for a collection scan 

• IXSCAN for scanning index keys 

• FETCH for retrieving documents 

system.profile.execStats. inputStages 

New in version 3.0: inputStages (page 296) replaces the children field. 

An array that contains statistics for the operations that are the input stages of the current stage. 

system.profile. ts 

The timestamp of the operation. 

system.profile. client 

The IP address or hostname of the client connection where the operation originates. 

For some operations, such as db.eval() , the client is 0.0.0.0:0 instead of an actual client. 

system.profile. allUsers 

An array of authenticated user information (user name and database) for the session. See also Client Authenti- cation (page 323). 

system.profile. user 

The authenticated user who ran the operation. If the operation was not run by an authenticated user, this field’s value is an empty string. 

## 5.3.4 Server Status Output 

This document provides a quick overview and example of the serverStatus command. The helper db.serverStatus() in the mongo shell provides access to this output. For full documentation of the content of this output, see http://docs.mongodb.org/manual/reference/command/serverStatus . 

