Create all field options and navigation menu items of a migration in one action
Merged
CH
19h ago+109+109+012345678901234567890123456789-58-58-01234567890123456789
Why
Workspace activation still runs one INSERT per select option and per navigation menu item of the standard application: 64 single-row inserts into fieldMetadataOption and 22 into navigationMenuItem, each in its own runner action.
Follow-up to #32422. Measured locally, an activation on main runs 289 INSERT statements (1,592 before the series); this should bring it to about 205.
What
Both metadata names join the ones whose create actions are merged into one action per migration, so each is inserted in one statement.
Field options
computeFieldMetadataOptionEnumChangesreads every option of a create action instead of the first one. It runs on the aggregated actions, so it would otherwise have seen only one new option per migration.- Options carry no schema change of their own: the enum is still built by the field or object action from the option rows of the migration.
Navigation menu items
- An item can have a parent created in the same migration, and entities of one action do not see each other in the flat entity maps. The handler allocates the id of every item of the action first and resolves
parentIdthrough the existing preallocated id lookup. - The builder already sorts self-referencing creates parents first, and aggregation keeps that order.
Screenshots
No UI change.