#24203: Optimisation: adding multiple fields to same model should attempt to run
single ALTER TABLE statement
-------------------------------------+-------------------------------------
     Reporter:  peterlauri           |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Migrations           |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  migration            |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by simonpercivall):

 Replying to [comment:2 timgraham]:
 > Could you give some performance numbers for comparison?

 I can give performance numbers for a MySQL installation.

 Doing an ALTER TABLE on a table with 120 columns and containing approx.
 20M rows takes 2–3 hours. Combining several ALTER TABLES into one takes no
 longer time.

 The simple math here is that three Django migrations would take 6–9 hours,
 whereas the combined version would take 2–3 hours.

--
Ticket URL: <https://code.djangoproject.com/ticket/24203#comment:5>
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/068.8b28eb6fc9b1bd110005daac289a87ff%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to