File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ by overwriting the oldest documents in the collection.
22
22
See :method:`~db.createCollection()` or :dbcommand:`create`
23
23
for more information on creating capped collections.
24
24
25
- .. tip::
25
+ As an alternative to capped collections, consider :ref:`TTL (Time To
26
+ Live) indexes <index-feature-ttl>`. TTL indexes allow you to expire and
27
+ remove data from normal collections based on the value of a date-typed
28
+ field and a TTL value for the index. You can also use a TTL index on a
29
+ capped collection to remove expired documents even if the capped
30
+ collection hasn't exceeded its size limit. For details, :ref:`ttl-collections`.
26
31
27
- As an alternative to capped collections, consider MongoDB's
28
- :ref:`TTL (Time To Live) indexes <index-feature-ttl>`. As
29
- described in :ref:`ttl-collections`, these indexes allow you
30
- to expire and remove data from normal collections based on the value
31
- of a date-typed field and a TTL value for the index.
32
32
33
33
Behavior
34
34
--------
You can’t perform that action at this time.
0 commit comments