Prevent loaddata from disabling and enabling constraints when no fixtures are found
|Reported by:||Michael Manfre||Owned by:||nobody|
|Cc:||baryshev@…||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
On my primary development system (Intel i7 quad core with SSD drives), it takes nearly 20 minutes to get from executing
runtests.py to the start of the first test. Most of the time (~18 minutes) is spent on the "loaddata" call_command in the migrate command's sync_apps method.
For comparison, using the same test environment and only changing the version of Django (to stable/1.6.x), it takes less than 2 minutes to get to the first test.
Change History (19)
comment:17 Changed 11 months ago by
|Patch needs improvement:||unset|
|Summary:||Test suite initial database construction is too slow → Prevent loaddata from disabling and enabling constraints when no fixtures are found|
|Triage Stage:||Accepted → Ready for checkin|