This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Statements executing VERY slowly

 
Alana Sparx
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

Statements we execute against the database are VERY SLOW INDEED.

The sql is generated by Hibernate.
The application server is Webshpere Community Edition.
The database is Sql Server 2005.
The database driver is the jTDS driver.

If we take the sql generated by hibernate and execute it directly against the database, the query flies along.
If we take the sql and execute it as a prepared statement through a jdbc connection, again it flies along.
When we use the service that ultimately calls the Hibernate classes, we are waiting in excess of 60 seconds for the query to complete.

Does anyone have any pointers that can help remedy this?

I've also posted a similar question here, on the Websphere Forum
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you running out of memory? Check the amount of virtual memory your JVM is using - you may need to increase it.

Also, what is your network connection between your Hibernate app. and the DB like?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic