Skip to content

Commit a194fd1

Browse files
authored
(DOCSP-10067) Troubleshooting for schema analysis error (#258)
* (DOCSP-10067) Troubleshooting for schema analysis error * Updates from copy review
1 parent 3389df3 commit a194fd1

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
105 KB
Loading

source/schema.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,29 @@ To delete a location filter from the map:
335335

336336
.. |query-build-type| replace:: :ref:`build-query`
337337

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+
338361
.. class:: hidden
339362

340363
.. toctree::

0 commit comments

Comments
 (0)