mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
orm:schema-tool:update Execution plan not optimal when replacing primary key (mysql) #6747
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andig on GitHub (Jun 8, 2021).
I'm converting the following entity from using dedicated PK to composite PK by removing the id column. From:
To:
This creates the following execution plan:
This plan seems not optimal as it needs to lock and copy the entire
datatable in steps 1,3,4.My assumption is that steps one and 3 could be combined into one step and potentially running step 2 after step 5 might be a nop.