Skip to content

Commit 5255755

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCS-15501-filter-with-profile (#1525) (#1543)
* DOCS-15501-filter-with-profile * DOCS-15501-filter-with-profile * DOCS-15501-filter-with-profile Co-authored-by: jason-price-mongodb <[email protected]> Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 8e14583 commit 5255755

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/reference/method/db.setProfilingLevel.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,15 +385,15 @@ Set a Filter to Determine Profiled Operations
385385

386386
The following example sets for a :binary:`~bin.mongod` instance:
387387

388-
- the :ref:`profiling level <set-profiling-level-level>` to ``2``,
388+
- the :ref:`profiling level <set-profiling-level-level>` to ``1``,
389389

390390
- a :ref:`filter <set-profiling-level-options-filter>` of
391391
``{ op: "query", millis: { $gt: 2000 } }``, which causes the profiler
392392
to only record ``query`` operations that took longer than 2 seconds.
393393

394394
.. code-block:: javascript
395395

396-
db.setProfilingLevel( 2, { filter: { op: "query", millis: { $gt: 2000 } } } )
396+
db.setProfilingLevel( 1, { filter: { op: "query", millis: { $gt: 2000 } } } )
397397

398398
The method returns a document with the **previous** values for the
399399
settings.

0 commit comments

Comments
 (0)