r-universe-org / help

Support and bug tracker for R-universe
https://docs.r-universe.dev/
9 stars 2 forks source link

Delete old versions after a timeout #132

Open jeroen opened 2 years ago

jeroen commented 2 years ago

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.

jeroen commented 2 years ago

We should make sure not to list expired documents anywhere though.

jeroen commented 1 year ago

Tutorial on expiring: https://www.mongodb.com/docs/manual/tutorial/expire-data/

jeroen commented 1 month ago

What is tricky is that we may need to manually expire both gridfs.files and gridfs.chunks.