-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Slow delete performance with StatelessSession?
PostPosted: Wed Jul 15, 2009 1:33 pm 
Beginner
Beginner

Joined: Tue Mar 17, 2009 12:19 pm
Posts: 22
I've implemented org.hibernate.StatelessSession into my application and inserts and updates are working beautifully, and fast. Deletes also work great except for one particular type of object. I'm using SQL Server 2005 and looking at the sql trace, I can see four delete statements executing when this object gets deleted, as expected. The delete statement running against this object's respective table is the one that takes the longest. This table is not large. The delete statement shows many reads in addition to the longest duration and most cpu. I've inspected the class, looking for anything out of the ordinary. No dice.

Any ideas for what to look into to determine the performance bottleneck on these particular deletes? Is this perhaps a case where hibernate is loading the object to delete it? I believe the stateless session doesn't do that.

Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.