summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/signals.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt
index a89560cc1e..19a92a875c 100644
--- a/docs/ref/signals.txt
+++ b/docs/ref/signals.txt
@@ -106,6 +106,12 @@ Arguments sent with this signal:
``_state.db`` is ``None`` and cannot be used to check an ``instance``
database.
+.. warning::
+
+ For performance reasons, you shouldn't perform queries in receivers of
+ ``pre_init`` or ``post_init`` signals because they would be executed for
+ each instance returned during queryset iteration.
+
``pre_save``
------------