Beginner |
|
Joined: Tue Jan 04, 2005 5:39 am Posts: 37
|
Hibernate version:2.1.8
Hi,
I have a really large "tree-like" object model wich includes many one-to-may mappings with cascade="delete" option.
My problems are starting when i'm trying to delete the "root" object. While Hibernate is performing cascade deletes, it's actually retrieving all object model into the memory. It is very bad for me - from memory consumption and performance point of view. Is there any way to get around this?
May be the framework can (or i can cause it) build delete statements based on parent ID's instead-of traversing all children and deleting them explicitly?
Thanks a lot!
Michael.
|
|