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設(shè)的越大,讀數(shù)據(jù)庫(kù)的次數(shù)越少,速度越快;fetch size越小,讀數(shù)據(jù)庫(kù)的次數(shù)越多,速度越慢。
新聞熱點(diǎn)
疑難解答
圖片精選