Expert |
|
Joined: Wed Apr 11, 2007 11:39 am Posts: 735 Location: Montreal, QC
|
your best bet probably is to turn this into a hql, specially one that deletes a range of objects. This will eliminate the selects and improves performance of deletes. However, if you can't do this you might want to look at L2 cache to improve the performance with the selects, if the objects have been fetched on the same machine at some point. As for why selects happen, I would say its because those object are not managed and HB will have to go to database to make them managed.
Farzad-
|
|