Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336755

Summary: deletion table ordering is not grouped
Product: z_Archived Reporter: James Sutherland <jamesssss>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P2 CC: tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description James Sutherland CLA 2011-02-09 15:05:21 EST
the table access for inserts and updates are group by table for the most part, but deletes are not grouped as well.

Deletion is processed per class, m-m are processed up front, but
- direct/element collections are deleted after the object, so ping pong table access if deleting multiple objects of the same class
- multiple tables an inheritance ping pong
- unidirectional 1-m updates ping pong
- aggregate/element collections ping pong
- may be some issues with private/orphan deletes

we should follow the same process as inserts, and delete m-m/element collection/unidirectional 1-m upfront and order by table using deferred modification events

multiple tables and inheritance could also be processed upfront if not dependencies

this will improve batch writing performance and reduce deadlock potential
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:15:36 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:20:56 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink