summaryrefslogtreecommitdiff
path: root/scripts
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:20:00 -0500
commit1261c49690e25c9887f88b7d7f391764f01e1992 (patch)
treeb68b0f5464d48ecc72ca1f04c09e8fe6296a73bd /scripts
parentcef1bc87f9edea21e8dac6854b68b295eabd5aca (diff)
[1.8.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 'scripts')
0 files changed, 0 insertions, 0 deletions