We're working on audit log solution for one of our projects and would appreciate your help. We have media entity which contains media id (numeric), action (string, eg. PUBLISH) and occurred on date with time representing date and time when action happened. Requirement is to delete logs that are older than 90 days but to keep log with last action on media entity.
We are using Mongo 3.2 and we need help how to organize our collection since we need to support reads and writes on collection that will contain 200-300 millions of documents.
We tried several approaches but couldn't figure out a simple way on how to do it. Any suggestions on how to organize schema for this scenario?
Thanks,
Josip
Hi Josip,
Could you elaborate further on your requirements? For example:
Best regards,
Kevin