• Anssi Kääriäinen's avatar
    Fixed #23372 -- Made loaddata faster if it doesn't find any fixtures. · ee9f4686
    Anssi Kääriäinen yazdı
    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.
    ee9f4686
Adı
Son kayıt (commit)
Son güncelleme
..
fixtures Loading commit data...
__init__.py Loading commit data...
models.py Loading commit data...
tests.py Loading commit data...