Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Georg Abenthung
funkwhale
Commits
b42dfb71
Verified
Commit
b42dfb71
authored
Apr 19, 2019
by
Eliot Berriot
Browse files
Keep persistent connections to the database instead of recreating a new one for each request
parent
5efe427b
Changes
2
Hide whitespace changes
Inline
Side-by-side
api/config/settings/common.py
View file @
b42dfb71
...
...
@@ -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
...
...
changes/changelog.d/db.enhancement
0 → 100644
View file @
b42dfb71
Keep persistent connections to the database instead of recreating a new one for each request
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment