We need to maintain 4 months records in production after which we can purge the data. So i was planning to create a collection with 4 months and delete it manually.
I couldn't find any documentation in Java async driver api db.getCollection about mentioning a time period. Do you know how to create a collection specifying a time period?
Also, is this the best approach or should i use the TTL feature https://docs.mongodb.com/manual/tutorial/expire-data/ ?
Regards
Krishna
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/5a6568c0-3a87-44dc-ac98-25218a5472b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.