Fix sqlite3 threadpool exhaustion with db.serialize() on startup
This commit is contained in:
parent
246ca86319
commit
021b54cb75
1 changed files with 3 additions and 0 deletions
|
@ -236,6 +236,9 @@ async function openDatabase(filePath: string): Promise<sql.Database> {
|
|||
};
|
||||
|
||||
instance = new sql.Database(filePath, callback);
|
||||
|
||||
// See: https://github.com/mapbox/node-sqlite3/issues/1395
|
||||
instance.serialize();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue