11 Aralık 2018 Salı

hibernate.cfg.xml Dosyası - Diğer Ayarlar

hibernate.generate_statistics
Şöyle yaparız.
<properties>
  <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
  <property name="hibernate.hbm2ddl.auto" value="validate"/>
  <property name="hibernate.ejb.naming_strategy"
    value="org.hibernate.cfg.ImprovedNamingStrategy"/>
  <property name="hibernate.connection.charSet" value="UTF-8"/>
  <property name="hibernate.show_sql" value="true" />
  <property name="hibernate.generate_statistics" value="true" />
</properties>
Çıktı olarak şunu alırız
x seconds spent acquiring 1 JDBC connections;
x seconds spent releasing 0 JDBC connections;
x seconds spent preparing 160 JDBC statements;
x seconds spent executing 158 JDBC statements;
x seconds spent executing 2 JDBC batches;
x seconds spent performing 0 L2C puts;
x seconds spent performing 0 L2C hits;
x seconds spent performing 0 L2C misses;
x seconds spent executing 1 flushes(flushing a total of 1045 entities and 0 collections);
x seconds spent executing 1 partial-flushes(flushing a total of 1045 entities and 0 collections);

Hiç yorum yok:

Yorum Gönder