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.