On a second thought one could ask why the parent-child relation is analyzed at all. The JavaDoc on the sorter states
The original order is generated by cascade order, which in turn is based on the directionality of foreign-keys. So even though we will be changing the ordering here, we need to make absolutely certain that we do not circumvent this FK ordering to the extent of causing constraint violations.
To that means that parent-child relations are already correctly ordered and thus only batching needs to occur. I might miss something though so that's just meant to be a pointer on what the experts might look into. |