File tree Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Original file line number Diff line number Diff line change
1
+ Starting in MongoDB 5.0, the :pipeline: `$currentOp ` aggregation
2
+ stage is used when running the helper method :method: `db.currentOp() `
3
+ with :binary: `~bin.mongosh `.
4
+
5
+ Given this, in the 5.0 version of the shell and with mongosh,
6
+ :method: `db.currentOp() ` result sets are not subject to the
7
+ :ref: `16MB BSON document return size<limit-bson-document-size> `
8
+ document return size limit for documents of the previous legacy
9
+ :binary: `~bin.mongo ` versions.
Original file line number Diff line number Diff line change @@ -26,12 +26,9 @@ Definition
26
26
27
27
{ currentOp: 1 }
28
28
29
- :binary:`~bin.mongosh` provides the :method:`db.currentOp()`
30
- wrapper for the :dbcommand:`currentOp` command.
31
-
32
29
.. note::
33
30
34
- .. include:: /includes/fact-currentop.rst
31
+ .. include:: /includes/5.0- fact-currentop.rst
35
32
36
33
Behavior
37
34
--------
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Definition
25
25
26
26
.. note::
27
27
28
- .. include:: /includes/fact-currentop.rst
28
+ .. include:: /includes/5.0- fact-currentop.rst
29
29
30
30
Syntax
31
31
~~~~~~
Original file line number Diff line number Diff line change @@ -476,6 +476,13 @@ shell method) include additional information about the status of ongoing
476
476
resharding operations for the resharding coordinator and the
477
477
donor and recipient shards.
478
478
479
+ ``db.currentOp`` Method Now Uses Aggregation Stage in ``mongosh``
480
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
481
+
482
+ Starting in MongoDB 5.0, the :pipeline:`$currentOp` aggregation
483
+ stage is used when running the helper method :method:`db.currentOp()`
484
+ with :binary:`~bin.mongosh`.
485
+
479
486
``mongos`` / ``mongod`` Connection Pool
480
487
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
481
488
You can’t perform that action at this time.
0 commit comments