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

ruby on rails - Devise Logout Error in RoR -

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

model view controller - MVC Rails Planning -