colloqi/pisignage-server

MongoDB Optimisation

Opened this issue · 1 comments

I feel there is a need to do optimization in MongoDB storage,
One of my servers, which is active for more than 3 years now got 9.5GB of events.bson
Below is my mongo dump of Pisigange

image

I know this is due to the below option, can we trim it down to 6-month data or last one year something like that?
(Enable log for file play count/details (network intensive, do not enable unless you need it!))

https://docs.mongodb.com/manual/tutorial/expire-data/

Looks like this can help,

Please help me implement this .