Skip to content
Snippets Groups Projects
Commit 0bb487aa authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch 'persistant-db-connection' into 'develop'

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

See merge request funkwhale/funkwhale!727
parents 5efe427b b42dfb71
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment