-->
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.  [ 2 posts ] 
Author Message
 Post subject: Best One
PostPosted: Fri Nov 07, 2008 7:38 am 
Newbie

Joined: Sat Apr 26, 2008 12:16 pm
Posts: 5
Hi Guys,

Iam Little Confused To Use Query Of Criteria . which one is better to use.
i Know Criteria is best for dynamic Query Formation.
But Which One is Faster To Execute either Query or Criteria.

Please Sort Me Out From This Issue.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 2:19 pm 
Expert
Expert

Joined: Fri Jul 13, 2007 8:18 am
Posts: 370
Location: london
I doubt there is any significant performance difference between using HQL versus Criteria queries. The time taken to execute the java will be minute compared to the time taken to send the query to the database, have the database run it and return the results. The SQL generated by each approach will most likely be identical.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.