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 -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -