#23745: Migrations migrate is slow
-------------------------------------+-------------------------------------
Reporter: claudep | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Migrations | Version: master
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by sirex):
Recently I started to work on a project, that uses Django 1.7, and found,
that running one small test, takes about 10 seconds, white the test itself
takes 0.001s! I love TDD, but with Django 1.7 it became impossible.
With South, there was
[https://south.readthedocs.org/en/latest/settings.html#south-tests-migrate
SOUTH_TESTS_MIGRATE] option and with this option running single test was
instant.
Also, I have [https://github.com/python-
dirbtuves/akl.lt/blob/master/scripts/runtests.py#L29 a helper script],
that allows to switch database to in memory SQlite easily, this makes
tests even faster, because 98% of all tests works perfectly without
PostgreSQL. So I only switch to PostgreSQL for running tests, when I need
to.
In other words, running one single test has to be instant fast. If Django
itself takes 10 seconds to start, it is deal breaker for everyone who uses
TDD.
--
Ticket URL: <https://code.djangoproject.com/ticket/23745#comment:14>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.f308d687f212ef2f8e7be5f963c71c74%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.