#25309 closed Cleanup/optimization (fixed)
Docs: ATOMIC_REQUESTS is for **view** not http request
Reported by: | Thomas Güttler | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.8 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Current docs: https://docs.djangoproject.com/en/1.8/ref/settings/#atomic-requests
ATOMIC_REQUESTS Default: False Set this to True to wrap each HTTP request in a transaction on this database. See Tying transactions to HTTP requests.
According to my understanding (and the person sitting beside me) this is not correct.
ATOMIC_REQUESTS ties the transaction to the view, not the http request.
The middleware is part of the request. It is not inside the transaction.
I think it should be:
Set this to True to wrap each view in a transaction on this database.
Change History (5)
comment:1 by , 9 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
Yes, that looks correct to me.
docs/ref/settings.txt
HTTP request in a transaction on thisdatabase. See:ref:`tying-transactions-to-http-requests`.