chris
(Chris Dellaway)
2
Hi @Bar_Shauli
TTL indexes are very slow on descending order indexes in MongoDB versions before 7.0
Upgrade to MongoDB 7.0 (or 8.0) or recreate the the TTL index in ascending order.
It is also possible something else is wrong, review the log file for errors relating to TTL index.
The progress of TTLMonitor can be observed via db.serverStatus().metrics.ttl the deleted documents. Passes should increase regularly, every minute or so.
ref: https://jira.mongodb.org/browse/SERVER-56274
1 Like