[Django] #34534: Migration operation optimisations

4 views
Skip to first unread message

Django

unread,
May 3, 2023, 8:22:41 AM5/3/23
to django-...@googlegroups.com
#34534: Migration operation optimisations
-------------------------------------+-------------------------------------
Reporter: David | Owner: nobody
Sanders |
Type: | Status: new
Cleanup/optimization |
Component: Database | Version: dev
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
From https://github.com/django/django/pull/16819#issuecomment-1529913703

- RenameIndex can be reduced into CreateIndex
- DropConstraint can be reduced into CreateConstraint
- A question was raised whether constraints could be reduced into create
model though some databases do not support deferrable constraints (eg
MySQL)
- It's worth going over the operations to see if there are any other
potential reductions to add

--
Ticket URL: <https://code.djangoproject.com/ticket/34534>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages