#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:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by hugotacito):

 Like petersanchez, I was upgrading a big project from 1.7.x to 1.8.2 .
 MacBook Air here too. Our project has
 1900 ForeignKeyFields, 300 ManyToManyFields, 750 Models and 42 modules.

 It took me 93 minutes just to render model states for the first time.

 '''Operations to perform:'''
 '''Synchronize unmigrated apps:''' pagination, ckeditor, staticfiles,
 rest_framework_swagger, django_extensions, django_tables2, djtools,
 rest_framework, django_tables2_reports
 '''Apply all migrations:''' projetos, ae, ponto, frota, enquete, edu,
 financeiro, arquivo, patrimonio, estacionamento, authtoken, materiais,
 convenios, contratos, comum, contenttypes, remanejamento, almoxarifado,
 temp_ideias, rh, contracheques, protocolo, sessions, chaves, progressoes,
 auth, eleicao, cnpq, rsc, centralservicos, ldap_backend,
 processo_seletivo, admin, cpa, gestao, compras, orcamento, cursos, pdi,
 ferias, planejamento, microsoft
 '''Synchronizing apps without migrations:'''
 ...
 '''Running migrations:'''
 Rendering model states... DONE (5554.627s)
 Applying ae.0006_auto_20150619_1253... OK (26.600s)
 ...

 After that I ran a new migration and the rendering model states dropped to
 11 seconds.

 '''Operations to perform:'''
 '''Synchronize unmigrated apps:''' pagination, ckeditor, staticfiles,
 rest_framework_swagger, django_extensions, django_tables2, djtools,
 rest_framework, django_tables2_reports
 '''Apply all migrations:''' projetos, ae, ponto, frota, enquete, edu,
 financeiro, arquivo, patrimonio, estacionamento, authtoken, materiais,
 convenios, contratos, comum, contenttypes, remanejamento, almoxarifado,
 temp_ideias, rh, contracheques, protocolo, sessions, chaves, progressoes,
 auth, eleicao, cnpq, rsc, centralservicos, ldap_backend,
 processo_seletivo, admin, cpa, gestao, compras, orcamento, cursos, pdi,
 ferias, planejamento, microsoft
 '''Synchronizing apps without migrations:'''
 ...
 '''Running migrations:'''
 Rendering model states... DONE (11.538s)
 Applying edu.0028_historicoimportacao_alunos_afetados... OK (5.851s)
 ...

--
Ticket URL: <https://code.djangoproject.com/ticket/24743#comment:12>
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.1c5fd6a27e6793ef3aa6343420d00be6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to