Skip to content

Commit 983499a

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCS-16500-TTL-deletes (#5429) (#5453)
* 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 2f9502e commit 983499a

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

source/core/index-ttl.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ the following operation in :binary:`~bin.mongosh`:
6060

6161
db.eventlog.createIndex( { "lastModifiedDate": 1 }, { expireAfterSeconds: 3600 } )
6262

63+
.. include:: /includes/time-series-ttl-deletes.rst
64+
6365
.. _convert-non-ttl-single-field-index-into-ttl:
6466

6567
Convert a non-TTL single-field Index into a TTL Index
@@ -155,6 +157,9 @@ When the TTL thread is active, you will see delete operations in the
155157
output of :method:`db.currentOp()` or in the data collected by the
156158
:ref:`database profiler <database-profiler>`.
157159

160+
161+
.. include:: /includes/time-series-ttl-deletes.rst
162+
158163
Timing of the Delete Operation
159164
``````````````````````````````
160165

source/core/timeseries/timeseries-limitations.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ Delete commands must meet the following requirements:
5959
deleted. Set ``justOne: false`` or use the
6060
:method:`~db.collection.deleteMany()` method.
6161

62+
.. include:: /includes/time-series-ttl-deletes.rst
63+
64+
For details on TTL deletes, see :ref:`ttl-collections`.
65+
6266
Update commands must meet the following requirements:
6367

6468
.. include:: /includes/time-series/fact-update-limitations.rst
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)