1 <property name="hibernateproperties">
2 <props>
3 <prop key="hibernate.dialect">org.hibernate.dialect.oracle9dialect</prop>
4 <prop key="hibernate.show_sql">false</prop>
5 <!-- create/update the database tables automatically when the jvm starts up
6 <prop key="hibernate.hbm2ddl.auto">update</prop> -->
7 <!-- turn batching off for better error messages under postgresql
8 <prop key="hibernate.jdbc.batch_size">100</prop> -->
9 <prop key="hibernate.jdbc.batch_size">50</prop>
10 </props>
11 </property>fetch size设的越大,读数据库的次数越少,速度越快;fetch size越小,读数据库的次数越多,速度越慢。
新闻热点
疑难解答