Skip to content

Commit b210070

Browse files
authored
(DOCSP-13704): Added warning about the first TTL index. (#3728)
* (DOCSP-13704): Added warning about the first TTL index. * (DOCSP-13704): Incorporated Eric's feedback.
1 parent c7760e2 commit b210070

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/core/index-ttl.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ finite amount of time.
3131
Create a TTL Index
3232
------------------
3333

34+
.. warning::
35+
36+
After you create a TTL index, it might have a very large number of
37+
qualifying documents to delete at once. This large workload might
38+
cause performance issues on the server. To avoid these issues, plan
39+
to create the index during off hours, or delete qualifying documents
40+
in batches before you create the index for future documents.
41+
3442
To create a TTL index, use the :method:`~db.collection.createIndex()`
3543
method on a field whose value is either a :ref:`date
3644
<document-bson-type-date>` or an array that contains date values, then specify the ``expireAfterSeconds`` option with the desired TTL value in

0 commit comments

Comments
 (0)