mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-30 03:00:40 +00:00
increase sqlite cache size from 2MB to 12MB
This commit is contained in:
parent
70a6f0313c
commit
9f9c1007d7
1 changed files with 4 additions and 0 deletions
|
@ -36,7 +36,11 @@ class Database {
|
||||||
|
|
||||||
// Change to WAL
|
// Change to WAL
|
||||||
await R.exec("PRAGMA journal_mode = WAL");
|
await R.exec("PRAGMA journal_mode = WAL");
|
||||||
|
await R.exec("PRAGMA cache_size = -12000");
|
||||||
|
|
||||||
|
console.log("SQLite config:");
|
||||||
console.log(await R.getAll("PRAGMA journal_mode"));
|
console.log(await R.getAll("PRAGMA journal_mode"));
|
||||||
|
console.log(await R.getAll("PRAGMA cache_size"));
|
||||||
}
|
}
|
||||||
|
|
||||||
static async patch() {
|
static async patch() {
|
||||||
|
|
Loading…
Reference in a new issue