feat(sqlite): Set 5s of busy_timeout
To reduce database lock issue during concurrent write / wal merge
This commit is contained in:
parent
b2e7b6fafb
commit
5ce54d0144
1 changed files with 1 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ class SQLiteDatabase(SQLiteExceptionUtil, Database):
|
|||
pragmas = {
|
||||
"journal_mode": "WAL",
|
||||
"synchronous": "NORMAL",
|
||||
"busy_timeout": 5000, # in milliseconds
|
||||
}
|
||||
cursor = conn.cursor()
|
||||
for pragma, value in pragmas.items():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue