Skip to content

Commit a1eb3ba

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCS-16500-TTL-deletes (#5429) (#5452)
* DOCS-16500-TTL-deletes * DOCS-16500-TTL-deletes * DOCS-16500-TTL-deletes * DOCS-16500-TTL-deletes * DOCS-16500-TTL-deletes * DOCS-16500-TTL-deletes * DOCS-16500-TTL-deletes --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 2b4647f commit a1eb3ba

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

source/core/index-ttl.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ for matching documents. You can only create a ``partialFilterExpression`` on the
7878
the ``expireAfterSeconds`` of the partial TTL index, the collection
7979
deletes documents after the shorter time, so the TTL index has no effect.
8080

81+
.. include:: /includes/time-series-ttl-deletes.rst
82+
8183
This weather data time series collection deletes documents after 24 hours:
8284

8385
.. code-block:: javascript
@@ -206,6 +208,8 @@ output of :method:`db.currentOp()` or in the data collected by the
206208

207209
.. include:: /includes/multi-deletes.rst
208210

211+
.. include:: /includes/time-series-ttl-deletes.rst
212+
209213
Timing of the Delete Operation
210214
``````````````````````````````
211215

source/core/timeseries/timeseries-limitations.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ limitation on these ``delete`` commands:
7373
You cannot use these commands with multi-document transactions. There
7474
are no other restrictions.
7575

76+
.. include:: /includes/time-series-ttl-deletes.rst
77+
78+
For details on TTL deletes, see :ref:`ttl-collections`.
79+
7680
.. _timeseries-limitations-updates:
7781

7882
Updates
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
If a time series collection contains documents with ``timeField``
2+
timestamps before ``1970-01-01T00:00:00.000Z`` or after
3+
``2038-01-19T03:14:07.000Z``, no documents are deleted from the
4+
collection by the :term:`TTL "time to live" <TTL>` feature.

source/tutorial/expire-data.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ collection.
4444
You can modify the ``expireAfterSeconds`` of an existing TTL index
4545
using the :dbcommand:`collMod` command.
4646

47+
.. include:: /includes/time-series-ttl-deletes.rst
48+
4749
.. _expire-data-atlas-ui:
4850

4951
Expire Documents in the {+atlas+} UI

0 commit comments

Comments
 (0)