-->
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.  [ 4 posts ] 
Author Message
 Post subject: Performance Issue with Selects and Bulk inserts
PostPosted: Sat Dec 24, 2005 4:02 pm 
Newbie

Joined: Thu May 05, 2005 4:53 pm
Posts: 11
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.0.5

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


We are having wierd problems with bulk processing of several million records in our application. We are using Hibernate/SQL Server 2000/Websphere 6.0...the issue is the selects are taking forever and the JDBC Prepared Statement cache is not working. We use HQL for all the Select's, the inserts and updates are lightening fast though. From a SQL Server perspective the profiler shows the Selects to be ligtening fast but my RAD console shows a substantial pause between the Select's. Has anybody come across this issue? MaxStatements is turned on for the data source and I have tried a few different things with no success.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 26, 2005 2:37 am 
Newbie

Joined: Thu May 05, 2005 4:53 pm
Posts: 11
Anybody ? This is a huge problem


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 28, 2005 12:27 pm 
Expert
Expert

Joined: Sat Jan 17, 2004 2:57 pm
Posts: 329
Location: In the basement in my underwear
Are you selecting as you are inserting your bulk data? If so then your session is probably growing to a massive size and before the select is executing that auto flush is being triggered and the session has to see if anything is dirty which has a big negative impact on your selects.

However, this is all guessing as you ignore every section in the posting reqs ;)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 28, 2005 6:06 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
You can try to upgrade, stateless session must perform better in this case or create stored procedure if processing on client side is too slow.


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

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.