- Since:
- 1.6
- Author:
- Christoph Strobl, Mark Paluch
- 
Optional Element SummaryOptional Elements 
boolean
 
When set to true, aggregation stages can write data to disk. 
 
Add a comment to the query. 
 int
 
Sets the number of documents to return per batch. 
 long
 
Set the maximum time limit in milliseconds for processing operations. 
 
 
- 
Element Details
- 
maxExecutionTimeMslong maxExecutionTimeMs Set the maximum time limit in milliseconds for processing operations. 
- Returns:
- -1 by default.
- Since:
- 1.10
 
- Default:
- -1L
 
- 
cursorBatchSizeint cursorBatchSize Sets the number of documents to return per batch. 
 Use 0 (zero) for no limit. A negative limit closes the cursor after returning a single
 batch indicating to the server that the client will not ask for a subsequent one.
 
- Returns:
- 0 (zero) by default.
- Since:
- 2.1
 
- Default:
- 0
 
- 
- 
flags
- Returns:
- never null.
- Since:
- 1.10
 
- Default:
- {}
 
- 
allowDiskUseboolean allowDiskUse When set to true, aggregation stages can write data to disk. 
- Returns:
- false by default.
- Since:
- 3.0
- See Also:
- 
 
- Default:
- false