Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB Compass timeouts

Tags:

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.

like image 957
Dan Avatar asked Apr 04 '19 07:04

Dan


People also ask

Why my MongoDB compass is not working?

This error often occurs when: You provide no hostname or an invalid hostname to the Compass connect dialog. The destination server rejects a connection on an incorrect port. Your MongoDB cluster or server has been shutdown or the server hostname has changed.

What is MongoDB compass isolated?

What is the Compass Isolated Edition? Compass Isolated Edition restricts network requests to only the MongoDB server chosen on the Connect screen. All other outbound connections are not permitted in this edition, meaning no additional firewall configuration is required when running Compass Isolated Edition.

Is MongoDB and MongoDB compass different?

MongoDB Atlas belongs to "MongoDB Hosting" category of the tech stack, while MongoDB Compass can be primarily classified under "Database Tools". Some of the features offered by MongoDB Atlas are: Global clusters for world-class applications.

How do I limit the number of files in MongoDB?

The Limit() Method To limit the records in MongoDB, you need to use limit() method. The method accepts one number type argument, which is the number of documents that you want to be displayed.


1 Answers

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

like image 167
Massimiliano Marcon Avatar answered Sep 28 '22 01:09

Massimiliano Marcon