[perf] sqlite busy timeout

This commit is contained in:
Andrea 2022-02-12 14:21:40 +01:00
parent 686999dd98
commit 43498b5bc5
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class LazyDatabase {
if (this.db === null) {
this.db = await dbConnection();
// await this.db.get('PRAGMA journal_mode = WAL;');
// await this.db.get('PRAGMA busy_timeout = 5000;');
await this.db.get('PRAGMA busy_timeout = 5000;');
// await this.db.get('PRAGMA foreign_keys = ON;')
}
}