当前位置:网站首页>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 </
边栏推荐
- Some common terms
- STL教程10-容器共性和使用场景
- Hongmeng fourth training
- (数据库提权——Redis)Redis未授权访问漏洞总结
- Use typora to draw flow chart, sequence diagram, sequence diagram, Gantt chart, etc. for detailed explanation
- Solutions to the failure of installing electron
- ArcGIS应用(二十一)Arcmap删除图层指定要素的方法
- vulnhub之narak
- ftp登录时,报错“530 Login incorrect.Login failed”
- STL教程9-容器元素深拷贝和浅拷贝问题
猜你喜欢

Qt OpenGL 旋转、平移、缩放

Introduction to the implementation principle of rxjs observable filter operator

同事写了一个责任链模式,bug无数...

Viewing binary bin files with notepad++ editor

Kibana~Kibana的安装和配置

VS2015的下载地址和安装教程

Software testing weekly (issue 78): the more confident you are about the future, the more patient you are about the present.

Yintai department store ignites the city's "night economy"
![Capturing and sorting out external Fiddler -- Conversation bar and filter [2]](/img/04/e9cc027d753e7049f273d866eefdce.png)
Capturing and sorting out external Fiddler -- Conversation bar and filter [2]

Vulnhub geminiinc V2
随机推荐
银泰百货点燃城市“夜经济”
Cadence background color setting
The LINQ expression node type 'ArrayIndex' is not supported in LINQ to Entities
vulnhub之raven2
R语言使用gridExtra包的grid.arrange函数将lattice包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数
AI模型看看视频,就学会了玩《我的世界》:砍树、造箱子、制作石镐样样不差...
Stm32hal library upgrades firmware based on flash analog U disk (detailed explanation)
Visual Studio 2022下载及配置OpenCV4.5.5
GCC compilation process and dynamic link library and static link library
vulnhub之GeminiInc
Vulnhub's Tomato (tomato)
聊聊Flink框架中的状态管理机制
Capturing and sorting out external Fiddler -- Conversation bar and filter [2]
STL教程9-容器元素深拷贝和浅拷贝问题
XML (DTD, XML parsing, XML modeling)
Web安全总结
STL Tutorial 9 deep copy and shallow copy of container elements
Phpcms prompt message page Jump showmessage
PHP基础
2022年中南大学夏令营面试经验