Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336755 - deletion table ordering is not grouped
Summary: deletion table ordering is not grouped
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-09 15:05 EST by James Sutherland CLA
Modified: 2022-06-09 10:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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