@Weishan Ang: Thanks you on the suggestion but TTL documents don't solve
requirement to keep log with last action on media entity.
@Kevin Adistambha: We have decided to use separate collection for this
problem but thank you on help.
On Monday, April 11, 2016 at 1:45:44 PM UTC+2, Josip Grgurica wrote:
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
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?
You received this message because you are subscribed to the Google Groups "mongodb-user"