Tune SQLite settings

This commit is contained in:
Ben Sturmfels 2025-03-05 07:36:24 +11:00
parent 4cd203ad58
commit a604e1323b
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -25,7 +25,9 @@ DATABASES = {
'OPTIONS': { 'OPTIONS': {
# Reduce the incidence of "database locked" errors by allowing write # Reduce the incidence of "database locked" errors by allowing write
# requests to be queued for some seconds. # requests to be queued for some seconds.
'timeout': 5, 'timeout': 10,
'init_command': 'PRAGMA journal_mode = WAL; PRAGMA synchronous = NORMAL',
# "transaction_mode": "IMMEDIATE",
}, },
} }
} }