Flush and clear your first-level session cache periodically as in the following batch insert sample.
像如下范例中那样定期刷新(flush)并清除一级会话缓存。
For example, it doesn't have session cache, and nor does it interact with any second-level or query cache.
例如,它不需要会话缓存,也不和任何二级缓存或查询缓存有交互。
After turning on Hibernate's log level to trace, we found it was the updating of session cache that caused the delay.
将Hibernate的日志级别调成trace后,我们发现是更新会话缓存造成了延时。
By clearing the session cache before DML update, we cut the time to about 4 minutes, all of which is needed by the data loading into the session cache.
通过在DML更新前清除会话缓存,我们将时间缩短到了4分钟,全部都是将数据加载到会话缓存中花费的时间。
A session cache is created when a user opens a report.
会话缓存是在用户打开报表时创建的。
A session cache is created when a user opens a report.
会话缓存是在用户打开报表时创建的。
应用推荐