File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -385,15 +385,15 @@ Set a Filter to Determine Profiled Operations
385
385
386
386
The following example sets for a :binary:`~bin.mongod` instance:
387
387
388
- - the :ref:`profiling level <set-profiling-level-level>` to ``2 ``,
388
+ - the :ref:`profiling level <set-profiling-level-level>` to ``1 ``,
389
389
390
390
- a :ref:`filter <set-profiling-level-options-filter>` of
391
391
``{ op: "query", millis: { $gt: 2000 } }``, which causes the profiler
392
392
to only record ``query`` operations that took longer than 2 seconds.
393
393
394
394
.. code-block:: javascript
395
395
396
- db.setProfilingLevel( 2 , { filter: { op: "query", millis: { $gt: 2000 } } } )
396
+ db.setProfilingLevel( 1 , { filter: { op: "query", millis: { $gt: 2000 } } } )
397
397
398
398
The method returns a document with the **previous** values for the
399
399
settings.
You can’t perform that action at this time.
0 commit comments