TTL with 0 seconds doesn't create the script correctly.
Solved
I'm trying to create a TTL index with 0 on expireAfterSeconds to use the TTL index like this:
https://docs.mongodb.com/manual/tutorial/expire-data/#expire-documents-at-a-specific-clock-time
The NoSqlBooster is creating this following script:
db.getCollection("spring_cache").createIndex({ "expire_at": 1 }, { "name": "expire_at" })
Instead of:
db.getCollection("spring_cache").createIndex({ "expire_at": 1 }, { "name": "expire_at", "expireAfterSeconds": 0 })
Using the index build tool like this:
Thank you for your bug report. We will fix this issue in the next update.
Thank you for your bug report. We will fix this issue in the next update.
Resolved in the version 4.7.0
Resolved in the version 4.7.0
Replies have been locked on this page!