I receive transactional data from the current day that I deposit in a collection called "collA". Data may be declared for up to 4 days. After that, the data will be useless.
Are the two below possible in mongoDB?
Automatic Exchange Collections – When the clock reaches 12 o'clock, create a new collection. At this point, the old collection must be renamed "collA1". So at the end of day 4, I'm going to have collA, collA1, collA2, collA3 and collA4
WRITE requests must be addressed only to the new collA collection
Read requests should be addressed to all collA1 – 4 and collA