0

I want to test the maxTimeMS option of the MongoDB NodeJS driver. Queries that take longer than this parameter value should automatically be cancelled by the MongoDB server.

How can I simulate a long-running query that takes for example 30 seconds to test whether the query gets cancelled when I only have a small data set?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.