#24743: Django 1.8.1 migrations are actually slower than 1.8?
--------------------------------------+------------------------------------
Reporter: pzrq | Owner: MarkusH
Type: Cleanup/optimization | Status: assigned
Component: Migrations | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by pzrq):
Replying to [comment:29 mjacksonw]:
> Replying to [comment:18 MarkusH]:
> > Here's another approach that partly goes back to the old behavior:
https://github.com/django/django/pull/5178
> >
> > Could you all please run your migrations on that pull request and give
some feedback.
>
> Yup, brings the "rendering model states" step down to practically zero,
and no obvious side effects or other unexpected impacts. Looking forward
to this!
+1 here - hope it makes it into Django 1.9 and gives people more good
reasons to upgrade.
I backported (poorly, though it's a reasonably clean cherry-pick in just
bringing in some extra unused 1.9 stuff) to 1.8.x:
https://github.com/pzrq/django/compare/stable/1.8.x...backport_for_test_24743
With that I get a >50% speedup from 5m59.611s to 2m54.410s when running
the built in `time ./manage.py test <a_project>.<a_fast_app>`. Not
comparable to the originally reported timings as we've added a lot of
migrations, but a very welcome speedup either way :)
--
Ticket URL: <https://code.djangoproject.com/ticket/24743#comment:30>
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/062.4ad60f32971f293b4c27d979c76a6c7e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.