1
Fork 0

Reuse connection between requests

This commit is contained in:
Jake Howard 2024-04-15 21:12:44 +01:00
parent 0cefa8d125
commit 325fec5271
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -71,10 +71,12 @@ DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'file:default-db?mode=memory&cache=shared', 'NAME': 'file:default-db?mode=memory&cache=shared',
"CONN_MAX_AGE": 600
}, },
'yamdl': { 'yamdl': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'file:yamdl-db?mode=memory&cache=shared', 'NAME': 'file:yamdl-db?mode=memory&cache=shared',
"CONN_MAX_AGE": 600
} }
} }