Hibernate 缓存策略
来源:互联网 发布:置乱 数据 算法 编辑:程序博客网 时间:2024/06/05 20:18
转载自:http://docs.jboss.org/hibernate/orm/4.2/devguide/en-US/html_single
6.2.2. Caching strategies
- read-only
A read-only cache is good for data that needs to be read often but not modified. It is simple, performs well, and is safe to use in a clustered environment.
- nonstrict read-write
Some applications only rarely need to modify data. This is the case if two transactions are unlikely to try to update the same item simultaneously. In this case, you do not need strict transaction isolation, and a nonstrict-read-write cache might be appropriate. If the cache is used in a JTA environment, you must specify
hibernate.transaction.manager_lookup_class
. In other environments, ensore that the transaction is complete before you callSession.close()
orSession.disconnect()
.- read-write
A read-write cache is appropriate for an application which needs to update data regularly. Do not use a read-write strategy if you need serializable transaction isolation. In a JTA environment, specify a strategy for obtaining the JTA TransactionManager by setting the propertyhibernate.transaction.manager_lookup_class. In non-JTA environments, be sure the transaction is complete before you call
Session.close()
orSession.disconnect()
.- transactional
The transactional cache strategy provides support for transactional cache providers such as JBoss TreeCache. You can only use such a cache in a JTA environment, and you must first specify
hibernate.transaction.manager_lookup_class
.
6.2.3. Second-level cache providers for Hibernate
read-only
nontrict read-write
read-write
read-only
nontrict read-write
read-write
read-only
nontrict read-write
read-write
read-only
nontrict read-write
read-only
transactional
read-only
transactional
- Hibernate数据缓存策略
- Hibernate缓存策略详解
- Hibernate 缓存同步策略
- Hibernate 缓存策略
- Hibernate数据缓存策略
- hibernate缓存策略
- Hibernate的缓存策略
- Hibernate---缓存策略
- Hibernate缓存策略
- hibernate缓存策略
- Hibernate 缓存策略
- Hibernate 缓存策略
- Hibernate缓存原理与策略
- Hibernate缓存原理与策略
- Hibernate的缓存策略 二
- Hibernate缓存策略深入解读
- Hibernate缓存原理与策略
- Hibernate缓存原理与策略
- Sublime Text 3 全程详细图文原创教程(持续更新中。。。)
- html基础第一天
- how to clone all remote branches in git
- 浏览器的标准模式和怪异模式有什么区别?
- frame 和iframe 的区别以及和frameset 的关系及应用
- Hibernate 缓存策略
- Java接口与抽象类的区别
- python小程序-0004
- 电信联通共享检测技术及防封杀
- 最优化问题-梯度下降(Gradient Descent)算法&样例代码以及相关扩展
- hog matlab代码1——实现hog+svm图像二分类
- 学习springmvc的第十天(保存)
- AngularJS-1-helloworld
- ubuntu 16.04 搭建 pptp vpn