OPTIONS

$maxTimeMS

$maxTimeMS

Deprecated since version 3.2: The $maxTimeMS operator is deprecated. Use cursor.maxTimeMS() instead.

New in version 2.6: The $maxTimeMS operator specifies a cumulative time limit in milliseconds for processing operations on the cursor. MongoDB interrupts the operation at the earliest following interrupt point.

The mongo shell provides the cursor.maxTimeMS() method

Was this page helpful?

Yes No

Thank you for your feedback!

We're sorry! You can Report a Problem to help us improve this page.