disable busy_timeout, see if the server does better
This commit is contained in:
parent
cdb074d0b5
commit
21124e02fc
|
@ -42,9 +42,9 @@ class LazyDatabase {
|
|||
async init() {
|
||||
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 foreign_keys = ON;')
|
||||
// await this.db.get('PRAGMA journal_mode = WAL;');
|
||||
// await this.db.get('PRAGMA busy_timeout = 5000;');
|
||||
// await this.db.get('PRAGMA foreign_keys = ON;')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue