how to implement database retention in MongoDB

5.3k views Asked by At

Say I have a MongoDB instance and I want my data to be automatically deleted if it expires after 90 days or 30 days.

Say my data are just stock market stock prices updated/inserted every 5 seconds.

What's the best ways/method to do that? I can use MMS but I want to have my own control, using my own code.

0

There are 0 answers