The Research of Hibernate Cache Technique and Application of EhCache Component
The author has studied Hibernate cache technique. Hibernate cache technique has the primary cache, the secondary cache, the query cache, etc., which are for different applications. The primary cache is built inside Hibernate framework. It cannot be deleted. It comes or goes with Hibernate Session. The secondary cache is a pluggable and configurable component provided by a third party. It caches the data once accessed. The query cache is a special secondary cache that focuses on HQL query results. The author used a third-party cache component EhCache to cache the data with the secondary cache and the query cache during the development of her project. The research has shown that for Hibernate Criteria component, the improvement of query efficiency with the secondery cache decreases with the increase of the data quantity in the database table. If the query data quantity is relatively large, the secondary cache can play a negative impact on the application programs.
Hibernate cache technique EhCache cache component secondary cachet query cache
Wang Jing RuiFan
Information School Guangdong Ocean University Zhanjiang,China Software School Guangdong Ocean University Zhanjiang,China
国际会议
西安
英文
160-162
2011-05-13(万方平台首次上网日期,不代表论文的发表时间)