summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2015-12-29 18:29:11 +0200
committerTim Graham <timograham@gmail.com>2015-12-31 09:05:20 -0500
commit99569b22d93737f6304ffe808ebf1d0d711fedd9 (patch)
tree26ca960d00dee5b43fa416236d0e6485e52e19f3 /docs
parentb37cb0b95878c9356693f129334778f00f44a1bc (diff)
[1.9.x] Fixed #23372 -- Made loaddata faster if it doesn't find any fixtures.
Django's test suite often tries to load fixture files from apps that have no fixtures at all. This creates a lot of unnecessary disabling and enabling of constraints which can be expensive on some database. To speed this up, loaddata now first checks if any fixture file matches. If no fixture file is matched, then the command exits before disabling and enabling of constraints is done. The main benefit of this change is seen on MSSQL, where tests on Django 1.8 run hours faster. Backport of ee9f4686b19e2b4a68f5cb4f9d61dc045c1d4c63 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.8.8.txt3
-rw-r--r--docs/releases/1.9.1.txt3
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/releases/1.8.8.txt b/docs/releases/1.8.8.txt
index 8caf5f7ff5..a888925841 100644
--- a/docs/releases/1.8.8.txt
+++ b/docs/releases/1.8.8.txt
@@ -51,3 +51,6 @@ Bugfixes
* Fixed a regression in the admin which ignored line breaks in read-only fields
instead of converting them to ``<br>`` (:ticket:`25465`).
+
+* Made ``loaddata`` skip disabling and enabling database constraints when it
+ doesn't load any fixtures (:ticket:`23372`).
diff --git a/docs/releases/1.9.1.txt b/docs/releases/1.9.1.txt
index 9af92e30ef..a01eb09d19 100644
--- a/docs/releases/1.9.1.txt
+++ b/docs/releases/1.9.1.txt
@@ -73,3 +73,6 @@ Bugfixes
* Fixed incorrect object reference in
``SingleObjectMixin.get_context_object_name()`` (:ticket:`26006`).
+
+* Made ``loaddata`` skip disabling and enabling database constraints when it
+ doesn't load any fixtures (:ticket:`23372`).