Hi,
I'm facing weird difference in performance of SQL queries when I run it using session.createSQLQuery().
* query using Session.doWork() + jdbc API takes ~2 seconds. * Same for sqlplus/Sql Developer * very same SQL query ran using session.createSQLQuery() takes over 10 seconds.
I see that application spends time in AbstractBatcher.getResultSet(), the "ResultSet rs = ps.executeQuery();" line. Also I verified via "org.hibernate.SQL" category that SQL statement is indeed the same.
Any ideas what could cause such a difference?
hibernate 3.3.1 Spring 2.5.6, HibernateTemplate Oracle RAC 11g
Thanks, Pavel
|