We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2a7846 + 94cdfd2 commit 4759ec5Copy full SHA for 4759ec5
src/db/mod.rs
@@ -27,9 +27,10 @@ impl r2d2::ManageConnection for SqliteConnectionManager {
27
.pragma_update(None, "foreign_keys", "ON")
28
.unwrap();
29
30
- // increase the in-memory cache from 2MB to 50MB
+ // the goal of this is to try to keep `experiment_crates` mostly cached in memory.
31
+ // that makes it much faster to scan it for the next crate we want to serve.
32
connection
- .pragma_update(None, "cache_size", "-51200")
33
+ .pragma_update(None, "cache_size", "-307200")
34
35
36
// per docs, this is recommended for relatively long-lived connections (like what we have
0 commit comments