From 325fec527152097f01b73019fe7f29c6695fc8b2 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 15 Apr 2024 21:12:44 +0100 Subject: [PATCH] Reuse connection between requests --- yamdl_playground/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yamdl_playground/settings.py b/yamdl_playground/settings.py index 3c4a98d..141e7ff 100644 --- a/yamdl_playground/settings.py +++ b/yamdl_playground/settings.py @@ -71,10 +71,12 @@ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'file:default-db?mode=memory&cache=shared', + "CONN_MAX_AGE": 600 }, 'yamdl': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'file:yamdl-db?mode=memory&cache=shared', + "CONN_MAX_AGE": 600 } }