perf: optimize sqlite pragmas, settings caching, and network binding
This commit is contained in:
@@ -14,6 +14,9 @@ def set_sqlite_pragmas(dbapi_conn, connection_record):
|
||||
cursor = dbapi_conn.cursor()
|
||||
cursor.execute("PRAGMA journal_mode=WAL")
|
||||
cursor.execute("PRAGMA busy_timeout=5000")
|
||||
cursor.execute("PRAGMA synchronous=NORMAL")
|
||||
cursor.execute("PRAGMA cache_size=-64000")
|
||||
cursor.execute("PRAGMA temp_store=MEMORY")
|
||||
cursor.close()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user