Skip to content

Commit 6ae98ad

Browse files
(DOCSP-20105): Update 5.0 docs with accurate time series limitations (#153)
1 parent 1c215a0 commit 6ae98ad

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

source/core/timeseries/timeseries-limitations.txt

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,26 @@ 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+
Starting in MongoDB 5.0.5, you can perform some delete and update
28+
operations.
29+
30+
Delete commands must meet the following requirements:
31+
32+
- The query may only match on ``metaField`` field values.
33+
- The delete command may not limit the number of documents to be
34+
deleted. You must use a delete command with ``justOne: false`` or the
35+
:method:`~db.collection.deleteMany()` method.
36+
37+
Update commands must meet the following requirements:
38+
39+
- The query may only match on ``metaField`` field values.
40+
- The update command may only modify the ``metaField`` field value.
41+
- The update must be performed with an update document that contains
42+
only :ref:`update operator <update-operators>` expressions.
43+
- The update command may not limit the number of documents to be
44+
updated. You must use an update command with ``multi: true`` or the
45+
:method:`~db.collection.updateMany()` method.
46+
- The update command may not set :ref:`upsert: true <update-upsert>`.
3047

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

0 commit comments

Comments
 (0)