-->
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: Hibernate HQL takes more time than Query in TOAD/Oracle Deve
PostPosted: Wed Sep 11, 2013 1:21 am 
Newbie

Joined: Wed Sep 11, 2013 1:08 am
Posts: 1
Location: Bangalore, India
Hi,

I have found performance low while setParmeter used to parametrized the HQL after the Query object is created. The complex query takes 2/3 sec in application but the same query in TOAD takes 0.6 sec.
When I formed the query string with all parameters were set, and the Query object was created finally. The time is reduced drastically.

Can you help me ?

The sample code as follows:

Quote:
1. set the parameter values.
2. Form the final query string
3. Get the Session object
4. Query query = session.getSession().createQuery(queryString);
5. List tempRes = query.list();


Regards,
Abhijit

_________________
Regards,
Abhijit Das
Bangalore, India
abhijitdas.cs@gmail.com


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.