We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e87f8c8 + 4c41ca3 commit cce9230Copy full SHA for cce9230
config/settings/production.py
@@ -45,6 +45,9 @@
45
USE_DB_POOLING = env.bool("USE_DB_POOLING", default=False)
46
for db in ("default", "replica"):
47
if db in DATABASES:
48
+ # https://docs.djangoproject.com/en/dev/topics/db/transactions/#tying-transactions-to-http-requests
49
+ DATABASES[db]["ATOMIC_REQUESTS"] = True
50
+
51
if "OPTIONS" not in DATABASES[db]:
52
DATABASES[db]["OPTIONS"] = {}
53
0 commit comments