#24203: Optimisation: adding multiple fields to same model should attempt to run
single ALTER TABLE statement
-------------------------------------+-------------------------------------
     Reporter:  Peter Lauri          |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Migrations           |                  Version:  dev
     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 Pratyush Mittal):

 Yeah, clubbing will save multiple `copy to tmp table` steps on large
 tables.

 I have a MySQL table with ~20mln rows. I increased the decimal places for
 6 columns. This took 45 minutes which would have taken 5 minutes if the
 alter statements were clubbed.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/24203#comment:19>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070193b91783ac-9269fa83-0cb6-4ad3-afd2-963f42be0dda-000000%40eu-central-1.amazonses.com.

Reply via email to