当前位置:网站首页>Say sqlyog deceived me!
Say sqlyog deceived me!
2022-07-07 05:57:00 【51CTO】
emax_task_apply The data in this table reaches 700 More than ten thousand , The system becomes slow to query data . This time, I'm going to talk about what this table involves sql To optimize .
emax_task_apply Now the index :
SHOW INDEX FROM emax_task_apply
I always use it SQLyog This client tool .
Here are two sql sentence , I am here SQLyog By performing a comparison multiple times , The former is obviously better than the latter .
then , Swear to tell your colleagues :
Execute these two sql, Compare the , The performance is obvious
SELECT SQL_NO_CACHE * FROM emax_task_apply WHERE task_id >= 1 AND enterprise_id>=1 AND user_id = 1587702862385631 AND apply_status != 'TASKAPPLY_INVALID';
SELECT SQL_NO_CACHE * FROM emax_task_apply WHERE user_id = 1587702862385631 AND apply_status != 'TASKAPPLY_INVALID';
My colleagues later reported that , No, where are you going , Perform comparison several times to see , On the contrary, the former is a little slower than the latter .
later , Only then discovered , Colleagues use Navicat Premium 12 Test done .
How the same sql、 alike db, There is such a difference between the two tools ?
Let's look at their implementation plan ,2 A tool for 2 individual sql The analysis results are the same .
I'm looking for another colleague , stay DataGrip Internal execution , Find out ...
It seems ,“ Little dolphin ”SQLyog You lied to me .
however , I still can't believe this fact .
therefore , I put 2 individual sql Put it in the program , stay IDEA Run in testcase, It is found that the test results are consistent with Navicat Agreement .
Why is there such a difference , We'll trace it later . Also take this to remind students who encounter the same problem .
边栏推荐
猜你喜欢
Hcip eighth operation
【FPGA教程案例14】基于vivado核的FIR滤波器设计与实现
R语言【逻辑控制】【数学运算】
苹果cms V10模板/MXone Pro自适应影视电影网站模板
Red hat install kernel header file
Get the way to optimize the one-stop worktable of customer service
Realize GDB remote debugging function between different network segments
绕过open_basedir
SAP ABAP BDC(批量数据通信)-018
R language [logic control] [mathematical operation]
随机推荐
Flinksql read / write PgSQL
Distributed global ID generation scheme
Go language learning notes - Gorm use - Gorm processing errors | web framework gin (10)
微信小程序蓝牙连接硬件设备并进行通讯,小程序蓝牙因距离异常断开自动重连,js实现crc校验位
Hcip seventh operation
win配置pm2开机自启node项目
EMMC打印cqhci: timeout for tag 10提示分析与解决
深度聚类:将深度表示学习和聚类联合优化
PTA 天梯赛练习题集 L2-004 搜索树判断
[daily training -- Tencent selected 50] 292 Nim games
【已解决】记一次EasyExcel的报错【读取xls文件时全表读不报错,指定sheet名读取报错】
C nullable type
[daily training -- Tencent selected 50] 235 Nearest common ancestor of binary search tree
Opensergo is about to release v1alpha1, which will enrich the service governance capabilities of the full link heterogeneous architecture
980. Different path III DFS
【FPGA教程案例14】基于vivado核的FIR滤波器设计与实现
牙齿干细胞的存储问题(未完待续)
Personal imitation SSM framework
2pc of distributed transaction solution
Interview questions and salary and welfare of Shanghai byte