Search code examples
mongodbmongodb-compass

MongoDB Compass timeouts


I'm using MongoDB Compass to perform an aggregation on a reasonably large dataset (~2,000,000 documents, 300MB) through an SSH tunnel.

It connects fine and I can query but stages in my pipeline appear to timeout operation exceeded time limit.

enter image description here

I know via the command line you can set the max time in milliseconds for a query using maxTimeMs $maxTimeMS but is it possible to apply this in MongoDB Compass?

I have also looked for connection timeout settings and can't find anything related to that in the GUI.


Solution

  • In Compass 1.19-beta we added an option to set maxTimeMS in the aggregation pipeline builder and in the query bar.

    Compass 1.19 agg builder options