Skip to content

Commit c25b1ad

Browse files
committed
Merge database performance sections into one
1 parent f3fd7c9 commit c25b1ad

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

posts/2024-07-26-crates-io-development-update.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Following this change, he also implemented a way to create API tokens based on e
5454
![Dark Mode Screenshot](../../../images/2024-07-26-crates-io-development-update/regenerate-button.png)
5555

5656

57-
## Query optimizations
57+
## Database performance optimizations
5858

5959
Our latest addition to the crates.io team, [@eth3lbert](https://github.com/eth3lbert), has been working on optimizing the database queries that power crates.io. He has been working on a couple of pull requests that aim to reduce the load on the database server and make the website faster for everyone. Some of the changes he has made include:
6060

@@ -63,11 +63,4 @@ Our latest addition to the crates.io team, [@eth3lbert](https://github.com/eth3l
6363
- [#8734](https://github.com/rust-lang/crates.io/pull/8734): Add partial index on versions table
6464
- [#8737](https://github.com/rust-lang/crates.io/pull/8737): Improve the performance of reverse dependencies using the `default_versions` table
6565

66-
In some of these cases we have seen a 10-20x performance improvement. We are very happy to have him on the team and look forward to more improvements in the future!
67-
68-
69-
## New database server
70-
71-
We have recently migrated our database servers to a new provider with more memory and faster storage. This has improved the performance of the website and allowed us to run more complex queries without running into performance issues.
72-
73-
It was previously taking multiple seconds to load e.g. https://crates.io/crates/syn/reverse_dependencies, but now the server usually responds in significantly less than a second. We are very happy with the new servers and hope that you will notice the improved performance as well.
66+
In addition to that, we have recently migrated our database servers to a new provider with more memory and faster storage. This has also improved the performance of the website and allowed us to run more complex queries without running into performance issues. It was previously taking multiple seconds to load e.g. https://crates.io/crates/syn/reverse_dependencies, but now the server usually responds in much less than a second.

0 commit comments

Comments
 (0)