Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetch CrateDetails via MatchedRelease to save one SQL query per request #2435

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

syphar
Copy link
Member

@syphar syphar commented Mar 1, 2024

While working on #2383 I realized that we were fetching all releases for a crate twice, once in match_version, once when fetching CrateDetails.

This is the fix, should make some endpoints a little faster:

  • rustdoc pages
  • rustdoc redirector
  • target redirect
  • crate details

@syphar syphar requested a review from a team as a code owner March 1, 2024 07:05
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Mar 1, 2024
@syphar syphar force-pushed the dont-fetch-releases-twice branch 2 times, most recently from 6743bc5 to 03c4977 Compare March 1, 2024 07:15
Copy link
Member

@GuillaumeGomez GuillaumeGomez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds pretty nice! Please wait for @Nemo157's review before merging.

@syphar syphar requested a review from Nemo157 March 1, 2024 09:42
@syphar syphar force-pushed the dont-fetch-releases-twice branch from 03c4977 to 63ac89a Compare March 1, 2024 11:57
@syphar syphar requested a review from Nemo157 March 1, 2024 12:07
@syphar syphar merged commit 045ae1c into rust-lang:master Mar 1, 2024
9 checks passed
@syphar syphar deleted the dont-fetch-releases-twice branch March 1, 2024 12:29
@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 Mar 1, 2024
@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 Mar 1, 2024
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.

3 participants