Opened 19 months ago
Last modified 9 months ago
#34534 closed Cleanup/optimization
Reduce index/constraints operations. — at Version 2
Reported by: | David Sanders | Owned by: | nobody |
---|---|---|---|
Component: | Migrations | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | bcail | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
From https://github.com/django/django/pull/16819#issuecomment-1529913703
RenameIndex
can be reduced intoAddIndex
DropConstraint
can be reduced withAddConstraint
- 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
Change History (2)
comment:1 by , 19 months ago
Component: | Database layer (models, ORM) → Migrations |
---|---|
Easy pickings: | unset |
Summary: | Migration operation optimisations → Reduce index/constraints operations. |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 19 months ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
Thanks for the ticket.
This point it too generic. Please open a new ticket when you will find something more. We don't want to keep this ticket to be open forever.