Skip to content

Commit 0442e57

Browse files
authored
(DOCSP-31301): Backport DOCSP-13704 to v6.0. (#3728) (#3853)
* (DOCSP-13704): Added warning about the first TTL index. * (DOCSP-13704): Incorporated Eric's feedback.
1 parent 4826b57 commit 0442e57

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
@@ -32,6 +32,14 @@ only need to persist in a database for a finite amount of time.
3232
Create a TTL Index
3333
------------------
3434

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

0 commit comments

Comments
 (0)