From 79bba9a6411f6c5b78e21517334d757d24226d6e Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Wed, 5 Mar 2025 07:36:24 +1100 Subject: [PATCH] Tune SQLite settings --- conservancy/settings/prod.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conservancy/settings/prod.py b/conservancy/settings/prod.py index c633ddab..513259c2 100644 --- a/conservancy/settings/prod.py +++ b/conservancy/settings/prod.py @@ -25,7 +25,9 @@ DATABASES = { 'OPTIONS': { # Reduce the incidence of "database locked" errors by allowing write # requests to be queued for some seconds. - 'timeout': 5, + 'timeout': 10, + 'init_command': 'PRAGMA journal_mode = WAL; PRAGMA synchronous = NORMAL', + # "transaction_mode": "IMMEDIATE", }, } }