0

I'm using an Atlas M10 cluster.

The same query that takes <1 second on Compass takes 10 seconds using the Mongo Node.js client.

It's not application logic related, because I've isolated everything application-side, and did the query alone. Still the same results everytime.

The same query, querying the same cluster in Atlas.

Pedro Rabbi
  • 193
  • 1
  • 12
  • It's the query itself that is slow, or the entire execution of the application (including time to connect to the database etc)? What does `.explain("allPlansExecution")` for the query show? – user20042973 Oct 11 '22 at 20:18

0 Answers0