Merge "Keystore 2.0: Reduce sqlite cache to 0.5M"
This commit is contained in:
commit
0df926098f
1 changed files with 6 additions and 0 deletions
|
@ -1045,6 +1045,12 @@ impl KeystoreDB {
|
|||
break;
|
||||
}
|
||||
|
||||
// Drop the cache size from default (2M) to 0.5M
|
||||
conn.execute("PRAGMA persistent.cache_size = -500;", params![])
|
||||
.context("Failed to decrease cache size for persistent db")?;
|
||||
conn.execute("PRAGMA perboot.cache_size = -500;", params![])
|
||||
.context("Failed to decrease cache size for perboot db")?;
|
||||
|
||||
Ok(conn)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue