size « cfg « JPA Q&A





1. How to limit resultset size through hibernate.cfg.xml?    coderanch.com

Oh, please tell my you're using the Ganng of Four's (GOF's) Data Access Object (DAO) pattern. You are right? I always like to implement finder methods in an abstract DAO class, that implements a GenericDAO interface, which provides a way to limit the resultset. As you can see, I'm a big fan of the Hibernate Criteria API: public List findAll(int startIndex, ...

2. hibernate.cfg.xml config - datasource - pool_size - how to    forum.hibernate.org

Hi, I had some preformance issues with my production environment. So I tried some things. I am in doubt about hibernate configuration. Environment: Tomcat 4-1-29 begin webapps/myapp.xml ---------------------------------------------------------------------------------- factory org.apache.commons.dbcp.BasicDataSourceFactory maxActive 50 maxIdle 10 maxWait 10000 ...

3. Increasing size of the prepared statement cache in cfg.xml?    forum.hibernate.org

Hibernate version 3.2.4 We are attempting to speed up our Hibernate generated SQL running against an Oracle database. A db trace of the Oracle db indicates that each execution of a SQL statement causes a re-parse (and recompilation?) of the statement. As far as I know, Hibernate should use Prepared Statements 'under the hood' by default. Is that true? If so, ...