#24745: Django 1.8+ Migrations Hold Onto Way More Memory
-------------------------------------+-------------------------------------
     Reporter:  jpulec               |                    Owner:  MarkusH
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Migrations           |                  Version:  1.8
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Markus Holtermann <info@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"5aa55038ca9ac44b440b56d1fc4e79c876e51393" 5aa55038]:
 {{{
 #!CommitTicketReference repository=""
 revision="5aa55038ca9ac44b440b56d1fc4e79c876e51393"
 Fixed #24743, #24745 -- Optimized migration plan handling

 The change partly goes back to the old behavior for forwards migrations
 which should reduce the amount of memory consumption (#24745). However,
 by the way the current state computation is done (there is no
 `state_backwards` on a migration class) this change cannot be applied to
 backwards migrations. Hence rolling back migrations still requires the
 precomputation and storage of the intermediate migration states.

 This improvement also implies that Django does not handle mixed
 migration plans anymore. Mixed plans consist of a list of migrations
 where some are being applied and others are being unapplied.

 Thanks Andrew Godwin, Josh Smeaton and Tim Graham for the review as well
 as everybody involved on the ticket that kept me looking into the issue.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24745#comment:8>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.016893943fb76ab9842eaad6bebd0efb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to