Now let us discuss the issue with the query optimization for the objects which are configured for second level cache.
现在我们来谈谈关于二级缓存的查询优化问题。
If a distributed cache is desired, we recommend using one of the WebSphere-provided distributed cache implementations. These can be used as a second level cache with hibernate.
如果需要分布式缓存,我们建议使用WebSphere提供的分布式缓存实现之一。
If we try to eager fetch the department entity then for every fetch of same department the database is hit for department information even though it is available in our second level cache.
如果对department实体采取预先抓取,那么对于同样的department实例,纵使它位于二级缓存中,每次也都需要查询数据库。
If we try to eager fetch the department entity then for every fetch of same department the database is hit for department information even though it is available in our second level cache.
如果对department实体采取预先抓取,那么对于同样的department实例,纵使它位于二级缓存中,每次也都需要查询数据库。
应用推荐