#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 hugotacito):
Hello markush, the first PR: https://github.com/django/django/pull/5125
didn't improved the speed... I'm gonna test asap the other PR, but the
problem is that the test takes a long time. And I have to run on an idle
machine to not impact in results.
{{{
-> % time python -m cProfile -o migrate2.pstats manage.py migrate -v 3
Operations to perform:
Synchronize unmigrated apps: pagination, ckeditor, staticfiles,
rest_framework_swagger, django_extensions, django_tables2, saude, djtools,
rest_framework, django_tables2_reports
Apply all migrations: projetos, ae, ...
Synchronizing apps without migrations:
Running pre-migrate handlers for application auth
Running pre-migrate handlers for application contenttypes
Running pre-migrate handlers for application sessions
Running pre-migrate handlers for application djtools
Running pre-migrate handlers for application admin
...
Creating tables...
Running deferred SQL...
Installing custom SQL...
Loading 'initial_data' fixtures...
Checking '/Users/hugo/workspace/suap' for fixtures...
No fixture 'initial_data' in '/Users/hugo/workspace/suap'.
...
Running migrations:
Rendering model states... DONE (7598.382s)
Applying ae.0009_auto_20150819_1451... OK (32.787s)
Applying arquivo.0004_auto_20150819_1451... OK (5.327s)
Applying contenttypes.0002_remove_content_type_name... OK (14.731s)
Applying auth.0002_alter_permission_name_max_length... OK (4.936s)
Applying auth.0003_alter_user_email_max_length... OK (5.118s)
Applying auth.0004_alter_user_username_opts... OK (5.106s)
Applying auth.0005_alter_user_last_login_null... OK (6.599s)
Applying auth.0006_require_contenttypes_0002... OK (0.015s)
...
Running post-migrate handlers for application auth
Running post-migrate handlers for application contenttypes
Running post-migrate handlers for application sessions
Running post-migrate handlers for application djtools
Running post-migrate handlers for application admin
...
python -m cProfile -o migrate3.pstats manage.py migrate -v 3
7671.55s user
93.25s system
92% cpu
2:20:36.92 total
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24743#comment:20>
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.858f82b58f9f3021f2a0f593ef5ac876%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.