File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,29 @@ To delete a location filter from the map:
335
335
336
336
.. |query-build-type| replace:: :ref:`build-query`
337
337
338
+ Troubleshooting
339
+ ---------------
340
+
341
+ If the analysis of your schema times out, it might be because the
342
+ collection you are analyzing is very large, causing MongoDB to stop the
343
+ operation before the analysis is complete. Increase the value of
344
+ ``maxTimeMS`` to allow the operation time to complete.
345
+
346
+ To increase the value of ``maxTimeMS``:
347
+
348
+ 1. In the query bar, expand :guilabel:`Options`.
349
+
350
+ .. figure:: /images/compass/schema-query-options.png
351
+ :alt: The Options button is on the right side of the query bar,
352
+ next to the green Analyze button.
353
+
354
+ 2. Increase the value of ``maxTimeMS`` to accommodate your collection.
355
+ ``maxTimeMS`` defaults to 5000 milliseconds, or 5 seconds, but large
356
+ collections might take tens of seconds to analyze.
357
+
358
+ Once you have increased the value of ``maxTimeMS``, retry your schema
359
+ analysis by clicking :guilabel:`Analyze`.
360
+
338
361
.. class:: hidden
339
362
340
363
.. toctree::
You can’t perform that action at this time.
0 commit comments