1. background : We have received frequent reports through nailing and e-mail since last night cpu The load exceeds 90%, just BI Colleague evening 、 Early in the morning, online audit cooperation is frequent DML database ( remarks :BI A colleague has a library DML jurisdiction , It will be withdrawn after the audit ) In addition, I have done timing synchronization online and offline, and this kind of thing has also happened before , I didn't take it seriously .
I came to patrol this morning , I found something unusual .

2. The following large number of statements are frequent , Discovery is another library ( Another business , The amount of concurrency is relatively large ), No 1 Why .

explain analysis , Found no index type:ALL
The execution time is 7 More than seconds .
3.desc table structure , Find out ad_id This field was developed and defined before I came here varchar(20),
See here speechless , This table is related to Tiktok and drainage , It was developed before , It is suggested to make it bigint replace varchar(20), Development doesn't need transformation for the time being
See here , You know why , because ad_id Defined by development varchar(20), but sql ad_id After is int type , There's an implicit conversion .
`ad_id` = '1733062082364420' The program has been modified ,cpu The load comes down immediately .
Caused by implicit conversion cpu Load near 100% More articles about
- ORACLE Implicit conversion of bound variables causes performance problems
Years later, after a system upgrade , Tools for monitoring databases DPA The discovery of the database Total Wait Time suddenly soared , As shown in the screenshot below , The total waiting time of the database has increased a lot compared with that before the upgrade In addition, it is found that there are more waiting Events , There are mainly latch: ...
- mysql Implicit conversion of strings causes query exceptions
If mysql A field (name) The type is varchar, Indexed , In execution where When querying , Into int Value , This will scan the whole table , Convert the value of each bar to int( There will be " China "-&g ...
- A little more every day (2016.12.04)》Javascript Implicit conversion
think aimlessly javascript Why do you need implicit conversions ? If not, what will happen ? I looked around and didn't see any discussion about this , I have to study it myself , It may not be right , Know for yourself . Depressed is depressed in a good , Why do you need an implicit conversion , In general ...
- Javascript Implicit conversion
think aimlessly javascript Why do you need implicit conversions ? If not, what will happen ? I looked around and didn't see any discussion about this , I have to study it myself , It may not be right , Know for yourself . Depressed is depressed in a good , Why do you need an implicit conversion , In general ...
- About ORACLE Performance problems after implicit conversion
SELECT TM.MONEY_CODE FROM T_CONTRACT_MASTER T,T_MONEY TM WHERE T.MONEY_ID = TM.MONEY_ID AND T.POLICY ...
- MySQL SQL Optimized string index implicit conversion
Some users were puzzled before :SQL The sentence is very simple , Namely select * from test_1 where user_id=1 This type of , and user_id It's indexed on , Why is the query still slow ? test_1 My watch knot ...
- Scala Implicit transformation and implicit parameters in
An implicit definition is a definition that the compiler allows to be inserted into a program in order to correct type errors . give an example : Under normal circumstances "120"/12 It's obviously a mistake , because String Class does not implement / This method , We can't decide Stri ...
- JS Implicit transformation of from [] ==false Speaking of
Preface Recently, I talked with Dachuang about [] == false, Judging from the result, we both got the wrong answer , In terms of momentum, both of our fallacies can be published ( Okay , The pride of the programming ape ), But there is a deep pool of water behind it , Yes , Very deep ... Implicit type conversion JS ...
- Scala Implicit transformation and its application
What is implicit transformation We often introduce third-party libraries , But when we want to expand new functions, it's usually inconvenient , Because we can't modify the code directly .scala Implicit conversion mechanism and implicit parameters are provided to help us solve such problems . Scala Implicit conversion in ...
- Scala Learn lesson note 3: functional programming 、 Set operations 、 Pattern matching 、 Type parameter 、 Implicit conversion 、Actor、
1:Scala and Java Comparison of : 1.1:Scala The function in is Java There is no concept at all in . because Java It's a completely object-oriented programming language , There are no features of a procedural programming language , therefore Java The first-class citizens in are classes and objects , And only ...
Random recommendation
- OpenGL The understanding of the central coordinate system ( One )
stay OpenGL in , There are at least three kinds of matrices , Corresponding to the function glMatrixMode() Three parameters of :GL_MODELVIEW,GL_PROJECTION,GL_TEXTURE. The following is the main description GL_MODEL ...
- jenkins Configuration record (1)-- Add user rights
A while ago, we deployed a set of jenkins Environmental Science , As an online code publishing platform . Deployment records :http://www.cnblogs.com/kevingrace/p/5651427.html Let's focus on jenk ...
- P2672 salesman
greedy , Water problem #include <bits/stdc++.h> using namespace std; const int maxn = 1000000; struct house { i ...
- bzoj2434
Take advantage of bzoj3172 The nature mentioned ,x String in y The number of occurrences in the string is in fail On the tree with x How many nodes are in the subtree whose end node is the root y So obviously we need to solve it offline , Let's press... First y The classification is saved, and then we follow the operation sequence , appear ...
- access database
// Access dynamic creation access database string conn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.M ...
- shell Batch detection of remote ports
[[email protected] li]$ cat port.sh #!/bin/bash # ip=`cat iplist` for i in $ip;do port=`ssh -t $ ...
- mysql-5.7 adopt apt perhaps yum Installation mode
This article only records the use of apt-get install mysql. Install... With the following command MySQL: shell> sudo apt-get install mysql-server This will install MySQL Package for server , as well as ...
- win7+win10 Daily experience of using the system
Please keep this Cmd Markdown Welcome and instructions for use , Of course, you can also use color Fonts . Or use small font . Or use the general word . To write a new contribution , Click... On the right side of the top toolbar New manuscript Or use shortcut keys Ctrl+Al ...
- take n To m That's ok
take n To m That's ok . select top m * from tablename where id not in (select top n id from tablename order by id as ...
- sql server View the last modified time of the object
sql server View the last modified time of the object , Sort by last modified time stored procedure SELECT * FROM sys.all_objects WHERE TYPE='P' ORDER BY modify_ ...







