Fix snapshot read path sqlite lock
This commit is contained in:
@@ -1570,8 +1570,10 @@ def list_monthly_mvp_ranking(
|
||||
|
||||
|
||||
def _connect(db_path: Path) -> sqlite3.Connection:
|
||||
connection = sqlite3.connect(db_path)
|
||||
connection = sqlite3.connect(db_path, timeout=30.0)
|
||||
connection.row_factory = sqlite3.Row
|
||||
connection.execute("PRAGMA journal_mode=WAL")
|
||||
connection.execute("PRAGMA busy_timeout = 30000")
|
||||
return connection
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user