File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ Capped Collections
12
12
:depth: 2
13
13
:class: singlecol
14
14
15
- Overview
16
- --------
17
-
18
15
:term:`Capped collections <capped collection>` are fixed-size
19
16
collections that support high-throughput operations that insert
20
17
and retrieve documents based on insertion order. Capped
@@ -33,9 +30,6 @@ for more information on creating capped collections.
33
30
to expire and remove data from normal collections based on the value
34
31
of a date-typed field and a TTL value for the index.
35
32
36
- TTL indexes are not compatible with capped collections.
37
-
38
-
39
33
Behavior
40
34
--------
41
35
Original file line number Diff line number Diff line change @@ -239,9 +239,6 @@ Restrictions
239
239
240
240
- The ``_id`` field does not support TTL indexes.
241
241
242
- - You cannot create a TTL index on a :ref:`capped collection
243
- <manual-capped-collection>`.
244
-
245
242
- You can only create TTL indexes for a :ref:`time series collection
246
243
<manual-timeseries-landing>` on the collection ``timeField``.
247
244
Original file line number Diff line number Diff line change @@ -91,6 +91,12 @@ Specify a query's index using the hint field
91
91
Starting in MongoDB 7.1, the hint field is available in the :dbcommand:`distinct` command,
92
92
allowing you to specify the query's index.
93
93
94
+ TTL Indexes
95
+ ~~~~~~~~~~~
96
+
97
+ Starting in MongoDB 7.1, you can create :ref:`TTL indexes <index-feature-ttl>`
98
+ on :ref:`capped collections <manual-capped-collection>`.
99
+
94
100
serverStatus Output Change
95
101
--------------------------
96
102
You can’t perform that action at this time.
0 commit comments