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

remove archive index sqlite connection pool for simplicity #2274

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

syphar
Copy link
Member

@syphar syphar commented Oct 14, 2023

Coming from #2273 (comment), I saw that creating the sqlite connection does make a 10x difference (8µs vs 80µs), but since these are _micro_seconds I think we can simplify our code by doing this.

Like this we can manually copy / delete / fix cached archive index files and will directly see the effect. Also this will reduce the number of threads & open files, though that doesn't matter much.

We will still have the issue of the actual cached index files being outdated when the rebuild is done by the second builder, or when we will have multiple webservers.

@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 14, 2023
@syphar syphar merged commit b879020 into rust-lang:master Oct 14, 2023
8 checks passed
@syphar syphar deleted the simple-sqlite branch October 14, 2023 15:59
@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 14, 2023
@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 19, 2023
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