perf: optimize sqlite pragmas, settings caching, and network binding

This commit is contained in:
Antigravity
2026-11-19 10:35:30 +05:30
parent 46f3d5f91c
commit a9ebc8c7f5
5 changed files with 64 additions and 13 deletions
+3
View File
@@ -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()