New in version 7.0.
This page documents a
mongosh method. This is not
the documentation for database commands or language-specific drivers,
such as Node.js.
For the database command, see the
For MongoDB API drivers, refer to the language-specific MongoDB driver documentation.
For the legacy
mongo shell documentation, refer to the
documentation for the corresponding MongoDB Server release:
sh.disableAutoMerger( <namespace> )
The method takes the following field:
Namespace in the format
When the method runs, it stops the AutoMerger. Any in progress operations issued by the AutoMerger are completed.
The following example disables automatic chunk merges for
"testDatabase.myCollection". Run the example from
sh.disableAutoMerger( "testDatabase.myCollection" )