#24743: Django 1.8.1 migrations are actually slower than 1.8?
-------------------------------+--------------------
Reporter: pzrq | Owner: nobody
Type: Uncategorized | Status: new
Component: Migrations | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Ran `time ./manage.py test <a_project>.<a_fast_app>`, results:
1m25.611s
https://github.com/django/django/commit/2329ca969f81309bd3d15da55f25f8e1bee3122d
1m26.505s
https://github.com/django/django/commit/0cacb8f8ba94b06a78dcdfa22dc406a8a20a7f88
0m36.864s
https://github.com/django/django/commit/697317f3340b1d1f40586262098ad4dbae9aebaf
0m36.250s
https://github.com/django/django/commit/516907540b81c009b74d29b2fa36319b47528b49
1m6.195s
https://github.com/django/django/commit/43f800a978deba4bc8d13e7f11e0afdc126cec25
Some quick stats for our project - 134 models, 90 apps across 2 databases,
58 migrations in our django_migrations table (the bare minimum needed to
get us through Django 1.7 and 1.8).
Thought I'd put it out there and see if others are getting similar overall
slower results.
--
P.S. I don't really care either way what happens with ticket - take it,
close it, whatever. I was just surprised that the migrations ran more
slowly under 1.8.1 when the release notes suggested otherwise.
https://docs.djangoproject.com/en/1.8/releases/1.8.1/#optimizations
P.P.S. In practice migrations take sufficiently long relative to Django
1.6 that I've ended up building a `--ramdb` option into
https://github.com/pzrq/discover-road-runner which is why I don't really
care a great deal anymore - the second (and next dozen) times a 2s unit
test is run it takes around 2s instead of around one minute (to rerun the
migrations over again, I haven't checked if `--keepdb` has been updated
since the 1.8 beta to work with in-memory SQLite databases).
--
Ticket URL: <https://code.djangoproject.com/ticket/24743>
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/047.8e33c1a3f7524643fc00a4afd8e4e42b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.