MongoDB - Archiving GridFS files (via TTL) -



MongoDB - Archiving GridFS files (via TTL) -

i know can set ttl index on files collection using:

db.files.ensureindex({"uploaddate" : 1},{expireafterseconds : xxx})

the problem is, doesn't handle db.chunks collection. can create background job go on db.chunks , orphans misses point, since if must have background job, allow him work , faster (i can mass deletion chunks more easily).

so, there smarter way of archiving\deleting files gridfs after predefined period of time?

thanks

mongodb

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -