当前位置:网站首页>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 .
边栏推荐
- 从“跑分神器”到数据平台,鲁大师开启演进之路
- make makefile cmake qmake都是什么,有什么区别?
- 集群、分布式、微服務的區別和介紹
- Win configuration PM2 boot auto start node project
- Detailed explanation of platform device driver architecture in driver development
- Bat instruction processing details
- Go语学习笔记 - gorm使用 - 原生sql、命名参数、Rows、ToSQL | Web框架Gin(九)
- Ten stages of becoming a Senior IC Design Engineer. What stage are you in now?
- SAP Spartacus checkout 流程的扩展(extend)实现介绍
- Red hat install kernel header file
猜你喜欢

EMMC print cqhci: timeout for tag 10 prompt analysis and solution

Mac version PHP installed Xdebug environment (M1 version)

@pathvariable 和 @Requestparam的详细区别

I didn't know it until I graduated -- the principle of HowNet duplication check and examples of weight reduction

Red hat install kernel header file

产业金融3.0:“疏通血管”的金融科技

力扣102题:二叉树的层序遍历

【SQL实战】一条SQL统计全国各地疫情分布情况

Go语学习笔记 - gorm使用 - 原生sql、命名参数、Rows、ToSQL | Web框架Gin(九)

pytorch_ 01 automatic derivation mechanism
随机推荐
R language [logic control] [mathematical operation]
Bat instruction processing details
mac版php装xdebug环境(m1版)
【Shell】清理nohup.out文件
上海字节面试问题及薪资福利
Digital IC interview summary (interview experience sharing of large manufacturers)
Type de texte de commutation d'entrée et de mot de passe de l'applet natif
PTA 天梯赛练习题集 L2-002 链表去重
一个简单的代数问题的求解
Mac version PHP installed Xdebug environment (M1 version)
Interview questions and salary and welfare of Shanghai byte
Get the way to optimize the one-stop worktable of customer service
《HarmonyOS实战—入门到开发,浅析原子化服务》
Red Hat安装内核头文件
Five core elements of architecture design
I didn't know it until I graduated -- the principle of HowNet duplication check and examples of weight reduction
What EDA companies are there in China?
AI face editor makes Lena smile
Message queue: how to deal with message backlog?
每秒10W次分词搜索,产品经理又提了一个需求!!!(收藏)