[perf] sqlite busy timeout
This commit is contained in:
parent
686999dd98
commit
43498b5bc5
|
@ -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;')
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue