mirror of
https://github.com/django/django.git
synced 2024-11-18 07:26:04 +00:00
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 |