Hibernate L2C未命中但没有执行查询

时间:2017-07-11 15:34:59

标签: java hibernate caching

以下是hibernate统计信息的示例:

11:24:26,518 INFO  
[org.hibernate.engine.internal.StatisticalLoggingSessionEventListener] 
(default task-61) Session Metrics {
    0 nanoseconds spent acquiring 0 JDBC connections;

    0 nanoseconds spent releasing 0 JDBC connections;
    0 nanoseconds spent preparing 0 JDBC statements;
    0 nanoseconds spent executing 0 JDBC statements;
    0 nanoseconds spent executing 0 JDBC batches;
    0 nanoseconds spent performing 0 L2C puts;
    925824 nanoseconds spent performing 64 L2C hits;
    97418 nanoseconds spent performing 2 L2C misses;
    799458 nanoseconds spent executing 1 flushes (flushing a total of 62 entities and 0 collections);
    6950 nanoseconds spent executing 2 partial-flushes (flushing a total of 0 entities and 0 collections)

有两个L2C未命中但是哪里没有数据库查询?我的理解是,如果存在L2C未命中,则应该对数据库进行查询。这是怎么发生的?

0 个答案:

没有答案