I am using Mongoose with a very large Mongo database, and I want costly queries like MySet.find({}) to time out after 10 seconds.
MySet.find({})
I\'ve tried setting a
I think this should work.
db.mycoll.find().maxTimeMS(50)