We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4826b57 commit 0442e57Copy full SHA for 0442e57
source/core/index-ttl.txt
@@ -32,6 +32,14 @@ only need to persist in a database for a finite amount of time.
32
Create a TTL Index
33
------------------
34
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
43
To create a TTL index, use the :method:`~db.collection.createIndex()`
44
method on a field whose value is either a :ref:`date
45
<document-bson-type-date>` or an array that contains :ref:`date values
0 commit comments