#34534: Reduce index/constraints operations.
--------------------------------------+------------------------------------
Reporter: David Sanders | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Description changed by Mariusz Felisiak:
Old description:
> 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
New description:
From https://github.com/django/django/pull/16819#issuecomment-1529913703
- `RenameIndex` can be reduced into `AddIndex`
- `DropConstraint` can be reduced with `AddConstraint`
- 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#comment:2>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/01070187e19847d9-4885408a-2ea1-452a-8d2e-9eb3de71e52d-000000%40eu-central-1.amazonses.com.