summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-03-07 23:06:58 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-03-11 15:05:04 +0100
commit189fb4e29463a2e1ee1a86a6c29c94f9f9904d6f (patch)
tree0681c98b6c9526d2c218cec3e7741414df703ed0 /docs/topics
parent17cf29920b3b3a4870c865cb53f6b935187ba4e4 (diff)
Added a note about long-running processes.
There isn't much else to say, really.
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/db/transactions.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/topics/db/transactions.txt b/docs/topics/db/transactions.txt
index 4cecf896a4..8cbe0dccd0 100644
--- a/docs/topics/db/transactions.txt
+++ b/docs/topics/db/transactions.txt
@@ -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
==========