Skip to content

Commit 5a63bc6

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-17645-multi-delete (#1677)
* DOCSP-17645-multi-delete * DOCSP-17645-multi-delete * DOCSP-17645-multi-delete * DOCSP-17645-multi-delete * DOCSP-17645-multi-delete * DOCSP-17645-multi-delete Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 9b14ae5 commit 5a63bc6

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

source/core/index-ttl.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ When the TTL thread is active, you will see delete operations in the
141141
output of :method:`db.currentOp()` or in the data collected by the
142142
:ref:`database profiler <database-profiler>`.
143143

144+
.. include:: /includes/multi-deletes.rst
145+
144146
Timing of the Delete Operation
145147
``````````````````````````````
146148

source/includes/multi-deletes.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Starting in MongoDB 6.1:
2+
3+
- To improve efficiency, MongoDB may batch multiple document deletions
4+
together.
5+
- The :dbcommand:`explain` command :ref:`results <explain-results>`
6+
contain a new ``BATCHED_DELETE`` stage for batched document deletions.

source/reference/delete-methods.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ collection:
2424
* - :method:`db.collection.remove()`
2525
- Delete a single document or all documents that match a specified filter.
2626

27+
.. include:: /includes/multi-deletes.rst
28+
2729
.. _additional-deletes:
2830

2931
Additional Methods

source/reference/explain-results.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ Stages are descriptive of the operation. For example:
111111

112112
- ``SHARDING_FILTER`` for filtering out orphan documents from shards
113113

114+
- ``BATCHED_DELETE`` for multiple document deletions that are batched
115+
together internally (starting in MongoDB 6.1)
116+
114117
.. _explain-results-5.1-later:
115118

116119
Explain Output for MongoDB 5.1 and Later

source/release-notes/6.1.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ For an example that uses the ``*UCP`` option, see
5151
General Changes
5252
---------------
5353

54+
Improved Efficiency for Multiple Document Deletions
55+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56+
57+
.. include:: /includes/multi-deletes.rst
58+
5459
``connPoolStats`` Metrics
5560
~~~~~~~~~~~~~~~~~~~~~~~~~
5661

0 commit comments

Comments
 (0)