Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a note about long-running processes.

There isn't much else to say, really.
  • Loading branch information...
commit 189fb4e29463a2e1ee1a86a6c29c94f9f9904d6f 1 parent 17cf299
@aaugustin aaugustin authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 docs/topics/db/transactions.txt
View
7 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
==========
Please sign in to comment.
Something went wrong with that request. Please try again.