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
Post a Comment