阅读背景:

如何知道/记录查询是否使用了Hibernate二级缓存?

来源:互联网 

Currently, in order to check if the Hibernate 2nd-level cache was used for a Database query, I check my SQL log (through p6spy or logSql=true in Datasource.groovy) to see if the Grais/Hibernate triggered an SQL query. And I assume that if the query was not logged, it might mean that cache was used. Currently, in order to check if the Hibernate 2




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: