mirror of
https://github.com/django/django.git
synced 2025-03-26 09:10:50 +00:00
Added a note about long-running processes.
There isn't much else to say, really.
This commit is contained in:
parent
17cf29920b
commit
189fb4e294
@ -164,6 +164,13 @@ Django provides a single API to control database transactions.
|
|||||||
- releases or rolls back to the savepoint when exiting an inner block;
|
- releases or rolls back to the savepoint when exiting an inner block;
|
||||||
- commits or rolls back the transaction when exiting the outermost block.
|
- commits or rolls back the transaction when exiting the outermost block.
|
||||||
|
|
||||||
|
.. admonition:: Performance considerations
|
||||||
|
|
||||||
|
Open transactions have a performance cost for your database server. To
|
||||||
|
minimize this overhead, keep your transactions as short as possible. This
|
||||||
|
is especially important of you're using :func:`atomic` in long-running
|
||||||
|
processes, outside of Django's request / response cycle.
|
||||||
|
|
||||||
Autocommit
|
Autocommit
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user