Database Reference
In-Depth Information
but you can simply change it by configuring the option with another value in the
mongod
configuration file.
On the other hand, the second parameter of the
setProfilingLevel
function accepts
the value for the
slowOpThresholdMs
option and overrides the default value (100 ms)
with the given value.
In the next section, we will enable and configure the profiler for a database or
mongod
instance.