Skip to content

Commit

Permalink
Added a note about long-running processes.
Browse files Browse the repository at this point in the history
There isn't much else to say, really.
  • Loading branch information
aaugustin committed Mar 11, 2013
1 parent 17cf299 commit 189fb4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/topics/db/transactions.txt
Expand Up @@ -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;
- 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
==========

Expand Down

0 comments on commit 189fb4e

Please sign in to comment.