计算机工程 ›› 2009, Vol. 35 ›› Issue (8): 38-39.doi: 10.3969/j.issn.1000-3428.2009.08.013

• 博士论文 • 上一篇    下一篇

基于HTTP请求的ORM性能优化研究

刘 磊1,2,倪 宏2,嵇智辉1,2,匡振国1,2   

  1. (1. 中国科学院研究生院,北京 100039;2. 中国科学院声学研究所国家网络新媒体工程技术研究中心,北京 100080)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-04-20 发布日期:2009-04-20

Research on ORM Performance Optimization Based on HTTP Request

LIU Lei1,2, NI Hong2, JI Zhi-hui1,2, KUANG Zhen-guo1,2   

  1. (1. Graduate University of Chinese Academy of Sciences, Beijing 100039;2. National Network New Media Engineering Research Center, Institute of Acoustics, Chinese Academy of Sciences, Beijing 100080)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-04-20 Published:2009-04-20

摘要: 针对对象关系映射工具,提出一种性能优化方法,该方法使得对象关系映射工具通过统计在HTTP请求处理过程中加载的和实际使用的对象字段,在后续请求处理中仅加载必需的对象字段,从而提升应用程序持久层性能。将改进过的对象关系映射工具应用到开源电子商务示例应用程序XPETSTORE后,HTTP请求响应时间平均降低8%。

关键词: 持久层, 对象关系映射, 关系数据库, 性能优化

Abstract: A kind of method to optimize performance of ORM tools is introduced. By analyzing the fields of objects loaded and used exactly in each HTTP request, the ORM tools only load the required fields to improve the performance of the persistence layer. The improved ORM tools are applied to XPETSTORE which is an E-commerce sample application. Test results indicate that the HTTP response time is reduced by an average of 8%.

Key words: persistence layer, Object-Relational Mapping(ORM), relational database, performance optimization

中图分类号: