feat(sqlite): Set 5s of busy_timeout

To reduce database lock issue during concurrent write / wal merge
This commit is contained in:
Tanmoy Sarkar 2025-10-25 21:28:08 +05:30 committed by Akhil Narang
parent b2e7b6fafb
commit 5ce54d0144
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -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():