I have a hibernate2.0.1 - struts1.1b- tomcat4.1.18 application that works well when it connects to a postgresql7.3 database, using the hibernate connection pool.
The same application is so slow on Oracle 8i that it is not usable. I am timing the loading of objects from Hibernate queries and found that this is were the problem lies. My objects contain lists, sets and bags, and iterating through them takes milliseconds in postgresql, seconds or even minutes with Oracle.
I am using in both cases exactly the same code everywhere, except for the hibernate.connection dialect, url, password and username details.
I checked that the raw SQL statements are executed with a reasonable speed on Oracle.
I've tried unsuccessfullly to:
- use c3p0 connection pooling
- replace cglib.jar with latest version (cglib-full-2.0-RC2)
nothing has worked so far and I would be grateful for any help.
|