Skip to content

drop "releases.readme" column - #3585

Merged
GuillaumeGomez merged 1 commit into
rust-lang:mainfrom
syphar:drop-readme-db
Oct 7, 2026
Merged

GuillaumeGomez merged 1 commit into
rust-lang:mainfrom
syphar:drop-readme-db

Conversation

@syphar

@syphar syphar commented Oct 7, 2026

Copy link
Copy Markdown
Member

Since a long time we primarily fetch readmes from the source archive primarily.

We only used the database readme if there wasn't a cargo.toml, or if we didn't find the readme. But in these cases there wouldn't have been releases.readme content anyways.

So we can drop that column and save the database storage. Also, this will make the releases table faster to work with on the server, since rows will be smaller.

One exception: the old logic tried to read a README.md, even when we didn't find a Cargo.toml. I'm not sure if that's a case we really need to handle?

@syphar syphar self-assigned this Oct 7, 2026
@github-actions github-actions Bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Oct 7, 2026
@syphar syphar changed the title WIP: drop "releases.readme" column drop "releases.readme" column Oct 7, 2026
@syphar

syphar commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

r? @GuillaumeGomez

@rustbot rustbot assigned GuillaumeGomez and unassigned syphar Oct 7, 2026
@syphar
syphar marked this pull request as ready for review October 7, 2026 07:11
@syphar
syphar requested a review from a team as a code owner October 7, 2026 07:11
@GuillaumeGomez

Copy link
Copy Markdown
Member

Weren't we talking about using this README field to store the generated and highlighted HTML?

@syphar

syphar commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

Weren't we talking about using this README field to store the generated and highlighted HTML?

generally yes, but:

  • it won't be what's in this column, which is the markdown, and doesn't cover 100% of the cargo logic
  • I think I would store that html file on S3, not in a database.

@GuillaumeGomez

Copy link
Copy Markdown
Member

Makes sense!

@GuillaumeGomez
GuillaumeGomez merged commit 9149a27 into rust-lang:main Oct 7, 2026
11 checks passed
@GuillaumeGomez
GuillaumeGomez deleted the drop-readme-db branch October 7, 2026 11:13
@github-actions github-actions Bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Oct 7, 2026
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Oct 8, 2026

This branch was successfully deployed

1 active deployment
github-pages — 0c9cd560 Deployed Oct 7, 2026 by GuillaumeGomez via deploy #627
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants