diff --git a/source/core/timeseries/timeseries-limitations.txt b/source/core/timeseries/timeseries-limitations.txt index ef9527952d1..5a4b98a6444 100644 --- a/source/core/timeseries/timeseries-limitations.txt +++ b/source/core/timeseries/timeseries-limitations.txt @@ -26,18 +26,30 @@ The maximum size of a measurement document is 4 MB. Updates and Deletes ~~~~~~~~~~~~~~~~~~~ -:ref:`Time series collections ` support update -and delete operations with limitations. The following operations are not supported -on time series collections: - -- :dbcommand:`findAndModify`. -- Updates that modify the ``timeField``. -- Updates with ``multi:false`` that modify the ``metaField``. -- Updates with ``upsert:true``. -- Updates or deletes in multi-document transactions. - -MongoDB supports all other update and delete operations. For more information, -see :ref:``. +Starting in MongoDB 5.1, you can perform some delete and update +operations. + +Delete commands must meet the following requirements: + +- The query may only match on ``metaField`` field values. +- The delete command may not limit the number of documents to be + deleted. You must use a delete command with ``justOne: false`` or the + :method:`~db.collection.deleteMany()` method. + +Update commands must meet the following requirements: + +- The query may only match on ``metaField`` field values. +- The update command may only modify the ``metaField`` field value. +- The update must be performed with an update document that contains + only :ref:`update operator ` expressions. +- The update command may not limit the number of documents to be + updated. You must use an update command with ``multi: true`` or the + :method:`~db.collection.updateMany()` method. +- The update command may not set :ref:`upsert: true `. + +In MongoDB 5.0, :ref:`Time series collections +` only support insert operations and read +queries. Updates and manual delete operations result in an error. To automatically delete old data, :ref:`set up automatic removal (TTL) `.