Docs Menu
Docs Home
/
Atlas
/ /

Set Max Time MS for Aggregation Queries

Use the Max Time MS option on the Aggregations tab to specify an upper time limit in milliseconds for aggregation pipelines that run in Atlas.

By default, Max Time MS is set to 60000 milliseconds, or 60 seconds. Consider raising this value if you have a large collection or your operations frequently time out. Alternatively, consider lowering the Max Time MS value to quickly identify inefficient or resource-intensive pipeline operations.

If your aggregation operation goes over the time limit, Atlas raises a timeout error.

1

On the Aggregations tab, click Options

More Options dropdown.
2

Next to the Max Time MS field, enter a numeric value to set as the maximum amount of time in milliseconds that an aggregation pipeline can run.

For example, to set a 5 second limit, enter 5000.

  • Adjust Maximum Time for Query Operations

Back

Specify Collation

On this page