title: Criteria v/s HQL .who is faster?
body: <p>I have been reading some anwers, but i'm still confused. ¿Why? because the differences that you have mentioned do not relate with the performance. they are related with easy use.(Objetc(criteria) and SQL(hql)). But I would like to know if "criteria" is slower than hql for some reason.</p>
  
  <p>I read this in another anwers</p>
  
  <p>"There is a difference in terms of performance between HQL and criteriaQuery, everytime you fire a query using criteriaQuery, it creates a new alias for the table name which does not reflect in the last queried cache for any DB. This leads to an overhead of compiling the generated SQL, taking more time to execute." by Varun Mehta.</p>
  
  <p>This is very close BUT! i read in another website(http://gary-rowe.com/agilestack/tag/hibernate/) This is no longer the case with Hibernate 3.3 and above(please read this: 9) Hibernate is slow because the SQL generated by the Criteria interface is not consistent)</p>
  
  <p>I have done some test trying to find out the differences but both generate qry's and it doesn't change the alias to the table.</p>
  
  <p>I'm very confused. If somebody knows the main reason please, could you help us. Thanks</p>