当前位置:网站首页>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 .
边栏推荐
- Modes of optical fiber - single mode and multimode
- [daily training -- Tencent selected 50] 292 Nim games
- Differences and introduction of cluster, distributed and microservice
- How much do you know about clothing ERP?
- On the difference between FPGA and ASIC
- PTA 天梯赛练习题集 L2-003 月饼 测试点2,测试点3分析
- Pytorch builds neural network to predict temperature
- TCC of distributed transaction solutions
- Hcip seventh operation
- Bat instruction processing details
猜你喜欢
SAP ABAP BDC(批量数据通信)-018
数字IC面试总结(大厂面试经验分享)
Red Hat安装内核头文件
Go language learning notes - Gorm use - Gorm processing errors | web framework gin (10)
Go语学习笔记 - gorm使用 - gorm处理错误 | Web框架Gin(十)
Dynamic memory management
软件测试面试技巧
Différenciation et introduction des services groupés, distribués et microservices
Go语学习笔记 - gorm使用 - 原生sql、命名参数、Rows、ToSQL | Web框架Gin(九)
R language [logic control] [mathematical operation]
随机推荐
OpenSergo 即将发布 v1alpha1,丰富全链路异构架构的服务治理能力
Flinksql 读写pgsql
Interview skills of software testing
Type de texte de commutation d'entrée et de mot de passe de l'applet natif
Wechat applet Bluetooth connects hardware devices and communicates. Applet Bluetooth automatically reconnects due to abnormal distance. JS realizes CRC check bit
目标检测中的BBox 回归损失函数-L2,smooth L1,IoU,GIoU,DIoU,CIoU,Focal-EIoU,Alpha-IoU,SIoU
力扣102题:二叉树的层序遍历
【日常训练--腾讯精选50】235. 二叉搜索树的最近公共祖先
TCC of distributed transaction solutions
pytorch_ 01 automatic derivation mechanism
CMD permanently delete specified folders and files
Flask1.1.4 Werkzeug1.0.1 源碼分析:啟動流程
mac版php装xdebug环境(m1版)
bat 批示处理详解
Harmonyos practice - Introduction to development, analysis of atomized services
On the difference between FPGA and ASIC
Message queue: how to handle repeated messages?
Explication contextuelle du langage Go
集群、分布式、微服務的區別和介紹
Mac version PHP installed Xdebug environment (M1 version)