mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 23:09:17 +02:00
Keep persistent connections to the database instead of recreating a new one for each request
This commit is contained in:
parent
5efe427b76
commit
b42dfb71d1
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
1
changes/changelog.d/db.enhancement
Normal file
1
changes/changelog.d/db.enhancement
Normal file
|
@ -0,0 +1 @@
|
|||
Keep persistent connections to the database instead of recreating a new one for each request
|
Loading…
Add table
Add a link
Reference in a new issue