Open jeroen opened 2 years ago
We should make sure not to list expired documents anywhere though.
Tutorial on expiring: https://www.mongodb.com/docs/manual/tutorial/expire-data/
What is tricky is that we may need to manually expire both gridfs.files and gridfs.chunks.
See: https://docs.mongodb.com/manual/core/index-ttl/
To prevent race conditions when a package version changes in the time between then the user downloaded the PACKAGES file and when it installed the pakage.