Tune SQLite settings

This commit is contained in:
Ben Sturmfels 2025-03-05 07:36:24 +11:00
parent 751ca178fd
commit 79bba9a641

View file

@ -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",
},
}
}