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: Performace issue with hibernate
PostPosted: Fri May 11, 2007 4:24 pm 
Newbie

Joined: Thu May 03, 2007 6:24 pm
Posts: 14
Hello,

I'm using hibernate 3.2 JPA in my project. We are having performance issue. Not sure whether it is because of hibernate.

When I query the data using hibernate/jpa program, It takes 12-14 seconds for executing the query. If I do the same query in db direclty, It takes only 5-6 seconds.
What could be problem here and how can I rectify it? Please help me on this?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 11, 2007 9:27 pm 
Senior
Senior

Joined: Sat Aug 19, 2006 6:31 pm
Posts: 139
Have you used JProfiler?

It's pretty good. It's got a trial license. You can use it to profile your application and find where things are taking a long time.

_________________
Don't forget to rate the reply if it helps..:)

Budyanto


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 1:56 pm 
Newbie

Joined: Thu May 03, 2007 6:24 pm
Posts: 14
Hi,
Thanks for your reply.

In this issue, we know the hibernate query is taking longer time than direct SQL query . This issue happens only when there is huge amount of data in DB. I think I need to do some optimization. Please let me know what kind of optimization I should do in hibernate for less response time.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 15, 2007 2:55 am 
Beginner
Beginner

Joined: Mon Nov 06, 2006 2:40 am
Posts: 29
Location: New Delhi, India
use indexing in your database...


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.