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
.
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.
/usr/share/mongodb-compass-community-beta/resources/app.asar
that there is a constantconst DEFAULT_MAX_TIME_MS = 10000;
. I have tried to unpack theasar
file and succeed, and then found two files where the constant appears. But I found no way to rebuild theapp.asar
file. – Indecisive