hibernate 中的语句缓存情况:
需要通过hibernate自身的统计功能来确认。
--------------------
参考:
AFAIK, Hibernate transforms all sql to prepared statement form before issuing it to the database. When tuning the application, the size of prepared statement cache can be an important factor. How to determine the optimum value when using Hibernate, given that it creates prepared statements “under the hood”.
Generally you'd try to obtain such statistics from your database after letting the application run its normal course for a certain period of time.
You can also enable statistics and SQL logging in Hibernate configuration and analyze the data obtained.
本文探讨了Hibernate中语句缓存的重要性及其对应用程序性能的影响。为了确定最优的语句缓存大小,建议通过数据库统计信息进行评估,并启用Hibernate统计及SQL日志功能以辅助分析。
911

被折叠的 条评论
为什么被折叠?



