Skip to content

Commit fe95798

Browse files
authored
DOCSP-26416 Updates TTL-related doc directives (#2134)
1 parent 5972183 commit fe95798

File tree

9 files changed

+27
-29
lines changed

9 files changed

+27
-29
lines changed

source/core/capped-collections.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ for more information on creating capped collections.
2828
.. tip::
2929

3030
As an alternative to capped collections, consider MongoDB's
31-
:doc:`TTL (Time To Live) indexes </core/index-ttl>`. As
32-
described in :doc:`/tutorial/expire-data`, these indexes allow you
31+
:ref:`TTL (Time To Live) indexes <index-feature-ttl>`. As
32+
described in :ref:`ttl-collections`, these indexes allow you
3333
to expire and remove data from normal collections based on the value
3434
of a date-typed field and a TTL value for the index.
3535

36-
:doc:`TTL indexes </tutorial/expire-data>` are not compatible
37-
with capped collections.
36+
TTL indexes are not compatible with capped collections.
3837

3938

4039
Behavior

source/core/index-hidden.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ Behavior
2727
--------
2828

2929
Apart from being hidden from the planner, hidden indexes behave like
30-
unhidden indexes; i.e.
30+
unhidden indexes. For example:
3131

3232
- If a hidden index is a :doc:`unique index </core/index-unique>`, the
3333
index still applies its unique constraint to the documents.
3434

35-
- If a hidden index is a :doc:`TTL index </core/index-ttl>`, the index
35+
- If a hidden index is a :ref:`TTL index <index-feature-ttl>`, the index
3636
still expires documents.
3737

3838
- Hidden indexes are included in :dbcommand:`listIndexes` and

source/core/index-wildcard.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Considerations
203203
- A wildcard index may cover the same fields as other indexes in the
204204
collection.
205205

206-
- Wildcard indexes are :doc:`/core/index-sparse` and only contain
206+
- Wildcard indexes are :ref:`index-type-sparse` and only contain
207207
entries for documents that have the indexed field, even if the index
208208
field contains a null value.
209209

@@ -391,18 +391,18 @@ Restrictions
391391
For more information on shard key selection, see
392392
:ref:`sharding-shard-key`.
393393

394-
- You cannot create a :doc:`compound </core/index-compound>` index.
394+
- You cannot create a :ref:`compound <index-type-compound>` index.
395395

396396
- You cannot specify the following properties for a wildcard index:
397397

398-
- :doc:`TTL </core/index-ttl>`
399-
- :doc:`Unique </core/index-unique>`
398+
- :ref:`TTL <index-feature-ttl>`
399+
- :ref:`Unique <index-type-unique>`
400400

401401
- You cannot create the following index types using wildcard syntax:
402402

403-
- :doc:`2d (Geospatial) </core/geospatial-indexes>`
404-
- :doc:`2dsphere (Geospatial) </core/2dsphere>`
405-
- :doc:`Hashed </core/index-hashed>`
403+
- :ref:`2d (Geospatial) <2d-index-internals>`
404+
- :ref:`2dsphere (Geospatial) <2dsphere-index>`
405+
- :ref:`Hashed <index-type-hashed>`
406406

407407
.. important::
408408

source/includes/driver-examples/driver-example-modify-index-tabs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
content: |
66
To modify an existing index in the MongoDB Shell, you need to
77
drop and recreate the index. The exception to this rule is
8-
:doc:`TTL indexes </core/index-ttl/>`, which can be modified
8+
:ref:`TTL indexes <index-feature-ttl>`, which can be modified
99
via the :dbcommand:`collMod` command in conjunction with the
1010
:collflag:`index` collection flag.
1111

source/includes/extracts-wildcard-indexes.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ content: |
8484
Wildcard indexes do not support the following index types or
8585
properties:
8686
87-
- :doc:`Compound </core/index-compound>`
88-
- :doc:`TTL </core/index-ttl>`
87+
- :ref:`Compound <index-type-compound>`
88+
- :ref:`TTL <index-feature-ttl>`
8989
- :ref:`text <index-feature-text>`
90-
- :doc:`2d (Geospatial) </core/geospatial-indexes>`
91-
- :doc:`2dsphere (Geospatial) </core/2dsphere>`
92-
- :doc:`Hashed </core/index-hashed>`
93-
- :doc:`Unique </core/index-unique>`
90+
- :ref:`2d (Geospatial) <2d-index-internals>`
91+
- :ref:`2dsphere (Geospatial) <2dsphere-index>`
92+
- :ref:`Hashed <index-type-hashed>`
93+
- :ref:`Unique <index-type-unique>`
9494
9595
.. note::
9696

source/indexes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ field(s) and skip indexing documents that lack the indexed field(s).
246246
TTL Indexes
247247
~~~~~~~~~~~
248248

249-
:doc:`TTL indexes </core/index-ttl>` are special indexes that MongoDB
249+
:ref:`TTL indexes <index-feature-ttl>` are special indexes that MongoDB
250250
can use to automatically remove documents from a collection after a
251251
certain amount of time. This is ideal for certain types of information
252252
like machine generated event data, logs, and session information that

source/reference/glossary.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,8 @@ Glossary
797797
A per-collection setting that changes and normalizes the way
798798
MongoDB allocates space for each :term:`document`, in an effort to
799799
maximize storage reuse and to reduce fragmentation. This is the
800-
default for :doc:`TTL Collections </tutorial/expire-data>`. See
801-
:doc:`/reference/command/collMod`.
800+
default for :ref:`TTL Collections <ttl-collections>`. See
801+
:dbcommand:`collMod`.
802802

803803
prefix compression
804804
Reduces memory and disk consumption by storing any identical index

source/reference/parameters.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ General Parameters
13391339

13401340
*Default*: ``true``
13411341

1342-
To support :doc:`TTL Indexes </core/index-ttl>`, :binary:`~bin.mongod`
1342+
To support :ref:`TTL Indexes <index-feature-ttl>`, :binary:`~bin.mongod`
13431343
instances have a background thread that is responsible for deleting
13441344
documents from collections with TTL indexes.
13451345

@@ -1363,8 +1363,7 @@ General Parameters
13631363
Do not run production :binary:`~bin.mongod` instances with
13641364
``ttlMonitorEnabled`` disabled, except under guidance from MongoDB
13651365
support. Preventing TTL document removal can negatively impact
1366-
MongoDB internal system operations that depend on
1367-
:doc:`TTL Indexes </core/index-ttl>`.
1366+
MongoDB internal system operations that depend on TTL Indexes.
13681367

13691368
.. parameter:: tcpFastOpenServer
13701369

source/tutorial/expire-data.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Data expiration is useful for some classes of information, including
2222
machine generated event data, logs, and session information that only
2323
need to persist for a limited period of time.
2424

25-
A special :doc:`TTL index property </core/index-ttl>` supports the
25+
A special :ref:`TTL index property <index-feature-ttl>` supports the
2626
implementation of TTL collections. The TTL feature relies on a
2727
background thread in :binary:`~bin.mongod` that reads the date-typed values
2828
in the index and removes expired :term:`documents <document>` from the
@@ -31,7 +31,7 @@ collection.
3131
Procedures
3232
----------
3333

34-
To create a :doc:`TTL index </core/index-ttl>`, use the
34+
To create a :ref:`TTL index <index-feature-ttl>`, use the
3535
:method:`db.collection.createIndex()` method with the
3636
``expireAfterSeconds`` option on a field whose value is either a
3737
:ref:`date <document-bson-type-date>` or an array that contains
@@ -41,7 +41,7 @@ To create a :doc:`TTL index </core/index-ttl>`, use the
4141

4242
The TTL index is a single field index. Compound indexes do not
4343
support the TTL property. For more information on TTL indexes, see
44-
:doc:`/core/index-ttl`.
44+
:ref:`index-feature-ttl`.
4545

4646
You can modify the ``expireAfterSeconds`` of an existing TTL index
4747
using the :dbcommand:`collMod` command.

0 commit comments

Comments
 (0)