当前位置:网站首页>Optimize interface performance
Optimize interface performance
2022-07-03 11:53:00 【inexaustible】
Eight key points of interface optimization
Large amount of data , Batch operation data warehousing
Consider asynchronous processing for time-consuming operations
Use caching properly
Optimize program logic 、 Code
SQL Optimize
Compress the transmission content
Consider using files /MQ And so on , Asynchronous re landing DB
It's most appropriate to discuss requirements with the product , The most comfortable way to achieve it
One 、 Large amount of data , Batch operation data warehousing
Before optimization :
//for Circular single entry
for(TransDetail detail:list){
insert(detail);
}
After optimization :
// Bulk warehousing ,mybatis demo Realization
<insert id="insertBatch" parameterType="java.util.List">
insert into trans_detail( id,amount,payer,payee) values
<foreach collection="list" item="item" index="index" separator=",">(
#{item.id}, #{item.amount},
#{item.payer},#{item.payee}
)
</foreach>
</insert>
Two 、 Consider asynchronous processing for time-consuming operations </
边栏推荐
- 【mysql官方文档】死锁
- 【学习笔记】dp 状态与转移
- OpenStack中的测试分类
- ArcGIS application (XXI) ArcMap method of deleting layer specified features
- vulnhub之narak
- vulnhub之presidential
- Stm32hal library upgrades firmware based on flash analog U disk (detailed explanation)
- Xml的(DTD,xml解析,xml建模)
- Visual Studio 2022下载及配置OpenCV4.5.5
- MySQL searches and sorts out common methods according to time
猜你喜欢
随机推荐
Groovy测试类 和 Junit测试
2022 northeast four provinces match VP record / supplementary questions
Solution à la défaillance de l'installation d'Electron
剑指offer专项32-96题做题笔记
R language ggplot2 visualization: gganimate package creates dynamic line graph animation (GIF) and uses transition_ The reveal function displays data step by step along a given dimension in the animat
Raven2 of vulnhub
STL tutorial 8-map
Capturing and sorting out external Fiddler -- Conversation bar and filter [2]
Hongmeng fourth training
MySQL union和union all区别
鸿蒙第四次培训
Experience container in libvirt
typeScript
【学习笔记】dp 状态与转移
安装electron失败的解决办法
Dynamically monitor disk i/o with ZABBIX
vulnhub之Nagini
Phpcms prompt message page Jump showmessage
Wrong arrangement (lottery, email)
Web security summary