Verified Commit b42dfb71 authored by Agate's avatar Agate 💬

Keep persistent connections to the database instead of recreating a new one for each request

parent 5efe427b
Pipeline #3963 passed with stages
in 3 minutes and 36 seconds
......@@ -220,6 +220,7 @@ DATABASES = {
"default": env.db("DATABASE_URL")
}
DATABASES["default"]["ATOMIC_REQUESTS"] = True
DATABASES["default"]["CONN_MAX_AGE"] = env("DB_CONN_MAX_AGE", default=60 * 60)
MIGRATION_MODULES = {
# see https://github.com/jazzband/django-oauth-toolkit/issues/634
......
Keep persistent connections to the database instead of recreating a new one for each request
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment