mirror of https://github.com/django/django.git
ee9f4686b1
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. |
||
---|---|---|
.. | ||
fixtures | ||
__init__.py | ||
models.py | ||
tests.py |