Skip to content

Commit aa63be8

Browse files
Jocelyn Mendezjeff-allen-mongo
authored andcommitted
DOCSP-16551 updates and deletes limitations on time-series collections
1 parent ab982b6 commit aa63be8

File tree

6 files changed

+37
-9
lines changed

6 files changed

+37
-9
lines changed

source/core/timeseries-collections.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ command:
7979
}
8080
)
8181

82+
.. _time-series-fields:
83+
8284
When creating a time series collection, specify the following options:
8385

8486
.. list-table::

source/core/timeseries/timeseries-limitations.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,18 @@ The maximum size of a measurement document is 4 MB.
2424
Updates and Deletes
2525
~~~~~~~~~~~~~~~~~~~
2626

27-
:ref:`Time series collections <manual-timeseries-collection>` only
28-
support insert operations and read queries. Updates and manual delete operations
29-
result in an error.
27+
:ref:`Time series collections <manual-timeseries-collection>` support update
28+
and delete operations with limitations. The following operations are not supported
29+
on time series collections:
30+
31+
- :dbcommand:`findAndModify`.
32+
- Updates that modify the ``timeField``.
33+
- Updates with ``multi:false`` that modify the ``metaField``.
34+
- Updates with ``upsert:true``.
35+
- Updates or deletes in multi-document transactions.
36+
37+
MongoDB supports all other update and delete operations. For more information,
38+
see :ref:`<collection-method>`.
3039

3140
To automatically delete old data, :ref:`set up automatic removal (TTL)
3241
<set-up-automatic-removal>`.

source/reference/command/findAndModify.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _find-and-modify:
2+
13
=============
24
findAndModify
35
=============

source/reference/method/db.collection.update.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _collection-update:
2+
13
======================
24
db.collection.update()
35
======================
@@ -51,6 +53,8 @@ The :method:`db.collection.update()` method has the following form:
5153
}
5254
)
5355

56+
.. _update-parameters:
57+
5458
Parameters
5559
~~~~~~~~~~
5660

source/reference/method/js-collection.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _collection-method:
2+
13
==================
24
Collection Methods
35
==================

source/release-notes/5.1.txt

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,21 @@ Starting in MongoDB 5.1, :expression:`$dateSubtract` and
5959
:expression:`$dateAdd` report an error when an overflow is detected for
6060
``amount`` values.
6161

62+
Time Series Collections
63+
-----------------------
64+
65+
Geo Indexing for Time Series collections
66+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
67+
68+
Starting in MongoDB 5.1, you can use :ref:`geo indexes
69+
<timeseries-limitations-secondary-indexes>` on the ``metaField`` of time
70+
series collections.
71+
72+
Updates and Deletes
73+
~~~~~~~~~~~~~~~~~~~
74+
Starting in MongoDB 5.1, time series collections support
75+
:ref:`update and delete operations <updates-and-deletes>` with limitations.
76+
6277
.. _5.1-rel-notes-sbe:
6378

6479
Slot-Based Query Execution Engine
@@ -135,12 +150,6 @@ Opcode Counters
135150
Resharding Statistics
136151
- :serverstatus:`shardingStatistics.resharding.lastOpEndingChunkImbalance`
137152

138-
Geo Indexing for Time Series collections
139-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140-
141-
Starting in MongoDB 5.1, you can use :ref:`geo indexes
142-
<timeseries-limitations-secondary-indexes>` on the ``metaField`` of time
143-
series collections.
144153

145154
Schema Validation Errors Contain Description Field
146155
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)