Skip to content

Commit 6029a2d

Browse files
committed
Revert Acrolinx
1 parent 65a5d70 commit 6029a2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/cosmos-db/mongodb/time-to-live.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: MongoDB per-document time-to-live feature in Azure Cosmos DB
2+
title: MongoDB per-document TTL feature in Azure Cosmos DB
33
description: Learn how to set time to live value for documents using Azure Cosmos DB's API for MongoDB, to automatically purge them from the system after a period of time.
44
author: gahl-levy
55
ms.author: gahllevy
@@ -14,7 +14,7 @@ ms.custom: devx-track-csharp
1414
# Expire data with Azure Cosmos DB's API for MongoDB
1515
[!INCLUDE[MongoDB](../includes/appliesto-mongodb.md)]
1616

17-
Time-to-live (TTL) functionality allows the database to automatically expire data. Azure Cosmos DB for MongoDB utilizes Azure Cosmos DB's core TTL capabilities. Two modes are supported: setting a default TTL value on the whole collection, and setting individual TTL values for each document. The logic governing TTL indexes and per-document TTL values in Azure Cosmos DB's API for MongoDB is the [same as in Azure Cosmos DB](indexing.md).
17+
Time-to-live (TTL) functionality allows the database to automatically expire data. Azure Cosmos DB's API for MongoDB utilizes Azure Cosmos DB's core TTL capabilities. Two modes are supported: setting a default TTL value on the whole collection, and setting individual TTL values for each document. The logic governing TTL indexes and per-document TTL values in Azure Cosmos DB's API for MongoDB is the [same as in Azure Cosmos DB](indexing.md).
1818

1919
## TTL indexes
2020
To enable TTL universally on a collection, a ["TTL index" (time-to-live index)](indexing.md) needs to be created. The TTL index is an index on the `_ts` field with an "expireAfterSeconds" value.
@@ -24,7 +24,7 @@ MongoShell example:
2424
```
2525
globaldb:PRIMARY> db.coll.createIndex({"_ts":1}, {expireAfterSeconds: 10})
2626
```
27-
The command in the above example creates an index with TTL functionality.
27+
The command in the above example will create an index with TTL functionality.
2828

2929
The output of the command includes various metadata:
3030

0 commit comments

Comments
 (0)