-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
-
-
Iteration Cantaloupe
the maxTimeMs option seems to be ignored in the explain tab.
NOTE: that may be by intentional. It seems that maxTimeMs is also ignored by cursor.explain in node.js. I tried await coll.find().maxTimeMs(1).skip(2700).limit(5000).batchSize(1).explain() and it just returns, whereas toArray fails with a timeout.
To reproduce: Set maxTimeMs to 1 ms and run an explain for a non-indexed query on a big collection.
Even if few stages would report an execution time that is bigger than the maxTimeMs no error is raised and the operation returns normally.