From cb3146318cea36e37118f867f5af3645caf61ad6 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Wed, 18 Jun 2025 14:11:02 -0700 Subject: [PATCH] db-dump: document the location of historical version download CSVs --- crates/crates_io_database_dump/src/readme_for_tarball.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/crates_io_database_dump/src/readme_for_tarball.md b/crates/crates_io_database_dump/src/readme_for_tarball.md index 6257e18b3b5..39a6a97a11c 100644 --- a/crates/crates_io_database_dump/src/readme_for_tarball.md +++ b/crates/crates_io_database_dump/src/readme_for_tarball.md @@ -21,6 +21,10 @@ This is a dump of the public information in the crates.io database. - `crate_owners.owner_id` - if the owner is a user, this is their ID in `users.id`, otherwise it's the ID in `teams.id`. - `teams.login` - this will look something like `github:foo:bar`, referring to the `bar` team in the `foo` organisation. At present, as we only support GitHub, the first component will always be `github`. +## Historical version downloads + +For performance reasons, the live `version_downloads` table only includes data for the last 90 days. All available historical data (back to November 2014) archived from the table is available at https://static.crates.io/archive/version-downloads/ in CSV form. + ## Restoring to a Local crates.io Database 1. Create a new database.