Docs Home / Compass / Interact with Your Data / Query

Adjust Maximum Time for Query Operations

The MAX TIME MS query bar option sets the cumulative time limit in milliseconds to process query bar operations. If the time limit is reached before the operation completes, Compass interrupts the operation.

click to enlarge

The default MAX TIME MS value is 60000, or 60 seconds. Consider raising this value if you meet one of the following conditions:

You can also consider creating indexes to improve query performance.

Set MAX TIME MS

  1. Click Options.
  2. Adjust MAX TIME MS to the desired value in milliseconds.

Learn More

To learn more about MAX TIME MS, see cursor.maxTimeMS() in the MongoDB manual.