摘要
分析Java对象持久化层数据检索策略中内存浪费的原因,提出采用查询缓存和集合过滤的方法进行查询优化,降低了访问数据库的频率且避免了在数据查询检索过程中加载不需要的Java对象,从而降低了内存消耗。通过查询电子商务系统中客户的订单记录试验验证了优化方式的有效性。
Analyses the memory consumption in the retrieval process of Hibernate, proposes to adopt query caching and cell filtering policy to realize retrieval optimization. It reduces the frequency of accessing database and avoids to load unwanted Java objects in the data retrieval process, so the memory consumption is reduced. The experiment results of retrieval order record in the E-Commerce system show that the method is effective.
出处
《现代计算机》
2008年第6期164-166,177,共4页
Modern Computer