-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.1.2
-
Component/s: Index Maintenance, Storage, Usability
-
None
Since the default ObjectIds contain a timestamp, it would be nice if the _id index could also be used as a TTL index. Ideally the user would just attach an
{expireAfterSeconds : x}option to their existing _id index, and the TTL monitor would be smart enough to delete old documents based on the timestamp embedded in the ObjectIds.
- related to
-
SERVER-211 TTL collections
- Closed
-
SERVER-9305 Enabling adding expireAfterSeconds to convert to a TTL index
- Closed
-
SERVER-6700 Allow updates to expireAfterSeconds field for TTL indexes
- Closed