#26867: Migrate very slow
--------------------------------------+--------------------
     Reporter:  hugotacito            |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Migrations            |    Version:  1.9
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 When I have to run migrations between the change of modules it gets very
 slow.

 Example:

 Applying financial.010_auto_20150819_1451... OK (24.984s)
 '''(wait 5 minutes)'''
 Applying fleet.00120_auto_20150819_1451... OK (17.156s)
 Applying fleet.00121_auto_20150819_1451... OK (10.234s)
 Applying fleet.00122_auto_20150819_1451... OK (09.352s)
 Applying fleet.00123_auto_20150819_1451... OK (14.471s)
 '''(wait 5 minutes)'''
 Applying parking.0054_auto_20150819_1451... OK (11.604s)
 '''(wait 5 minutes)'''
 Applying poll.0085_auto_20150805_1413... OK (9.664s)
 Applying poll.0086_auto_20150819_1451... OK (34.831s)
 '''(wait 5 minutes)'''
 Applying protocol.0021_auto_20150819_1451... OK (10.068s)

 I think this happens because after the first migration is executed, the
 'migrate' command reloads all models again for each subsequent migration,
 without ignoring the migrations that was already run in previous 'migrate'
 commands.

--
Ticket URL: <https://code.djangoproject.com/ticket/26867>
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/053.e15eb4dce26680a94feb213d0e3ffc09%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to