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
摘要: 针对对象关系映射工具,提出一种性能优化方法,该方法使得对象关系映射工具通过统计在HTTP请求处理过程中加载的和实际使用的对象字段,在后续请求处理中仅加载必需的对象字段,从而提升应用程序持久层性能。将改进过的对象关系映射工具应用到开源电子商务示例应用程序XPETSTORE后,HTTP请求响应时间平均降低8%。
关键词:
持久层,
对象关系映射,
关系数据库,
性能优化
CLC Number:
LIU Lei; NI Hong; JI Zhi-hui; KUANG Zhen-guo;. Research on ORM Performance Optimization Based on HTTP Request[J]. Computer Engineering, 2009, 35(8): 38-39.
刘 磊;倪 宏;嵇智辉;匡振国;. 基于HTTP请求的ORM性能优化研究[J]. 计算机工程, 2009, 35(8): 38-39.