当前位置:网站首页>@Data source connection pool exhaustion caused by transactional abuse
@Data source connection pool exhaustion caused by transactional abuse
2022-07-04 19:37:00 【*๛ก(ー ̀ω ー ́ ก) 】
Get into hmp Regret to enter the observation map of the overview first , This page will be visited every minute 20+ Interface ,durid、oracle Such as the database , And back-end access has increased @Transactional Annotations ( This annotation adds a transaction to the interface , Before each visit, you will get mysql The connection pool , Only when the interface returns yes, it will be released ), Because the query of the interface takes too long and is accessed frequently , Easy to fill the connection pool , It makes other users unable to access mysql database .
@override
@transactional
public Map<String,Object> getAcMap(Map<String,String> map) throws ParseException {
.....
}
@transactional Use points :
1. There is no need to add @transactional annotation
(1) It is not an interface to operate the database
(2) It's just an interface for querying the database
(3) Interface that takes a long time to operate the database
2. The query function of the same database should be combined in one interface
边栏推荐
- Wechat reading notes of "work, consumerism and the new poor"
- Functional interface
- MySQL数据库基本操作-DDL | 黑马程序员
- Crawler (6) - Web page data parsing (2) | the use of beautifulsoup4 in Crawlers
- Mysql database basic operation -ddl | dark horse programmer
- Specify the character set to output
- . Net ORM framework hisql practice - Chapter 2 - using hisql to realize menu management (add, delete, modify and check)
- 用实际例子详细探究OpenCV的轮廓绘制函数drawContours()
- Comment utiliser async awati asynchrone Task Handling au lieu de backgroundworker?
- Stream流
猜你喜欢
Pytorch学习(四)
Detailed explanation of the binary processing function threshold() of opencv
Lenovo explains in detail the green smart city digital twin platform for the first time to solve the difficulties of urban dual carbon upgrading
The explain statement in MySQL queries whether SQL is indexed, and several types in extra collate and summarize
FPGA timing constraint sharing 01_ Brief description of the four steps
LM10丨余弦波动顺势网格策略
线上数据库迁移的几种方法
MySQL数据库基本操作-DDL | 黑马程序员
关于判断点是否位于轮廓内的一点思考
BCG 使用之CBCGPTabWnd控件(相当于MFC TabControl)
随机推荐
The 300th weekly match of leetcode (20220703)
BCG 使用之CBCGPTabWnd控件(相当于MFC TabControl)
Specify the character set to output
HDU 1097 A hard puzzle
测试工程师如何“攻城”(上)
在线SQL转Excel(xls/xlsx)工具
mysql中explain语句查询sql是否走索引,extra中的几种类型整理汇总
生成XML元素
Technologie de base de la programmation Shell IV
Online data migration scheme encountered in the project 1 - general idea sorting and technical sorting
黑马程序员-软件测试--09阶段2-linux和数据库-31-43修改文件权限字母发的说明,-查找链接修改文件,查找文件命令,链接文件,压缩解压方式,vi编辑器基本使用,
Is it safe to open an account at Great Wall Securities? How to open an account when buying stocks
Find the nth power of 2
FPGA timing constraint sharing 01_ Brief description of the four steps
与二值化阈值处理相关的OpenCV函数、方法汇总,便于对比和拿来使用
BCG 使用之CBCGPProgressDlgCtrl进度条使用
Shell programming core technology "I"
《工作、消费主义和新穷人》的微信读书笔记
Shell programming core technology "three"
English语法_名词 - 使用