摘要
针对前期异步接口性能测试方案中涉及的数据入库和快速统计分析作了设计优化及性能验证。优化点主要在两方面,一是基于JPA(Java Persistence API)、EJB(Enterprise Java Beans)以及线程池等技术实现了对数据入库的设计优化;二是基于MySQL索引、线程池并发技术实现了对统计分析的设计优化。性能验证结果显示,优化后数据入库逻辑对接口原有性能影响小,统计分析执行速率提高了1~2倍。
In view of recording data into database and rapid statistical analysis involved in the previous asynchronous interface performance test scheme,this paper makes design optimization as well as the performance verification.The optimization mainly focused on two aspects,one is to optimize the designation of recording data into database based on JPA,EJB,and the thread pool technology,the other is to optimize the designation of statistical analysis based on MySQL index and thread pool technology.The performance verification results show that the logic of recording data into database after optimization has little impact on the original interface performance,and the execution rate of the statistical analysis is improved by 1~2 times.
作者
孙立哲
Sun Lizhe(The Third Research Institute of Ministry of Public Security,Shanghai 201204,China)
出处
《计算机应用与软件》
北大核心
2023年第8期13-16,103,共5页
Computer Applications and Software