当前位置:网站首页>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 .
边栏推荐
- 404 not found service cannot be reached in SAP WebService test
- 【SQL实战】一条SQL统计全国各地疫情分布情况
- [daily training -- Tencent selected 50] 292 Nim games
- Personal imitation SSM framework
- ML之shap:基于adult人口普查收入二分类预测数据集(预测年收入是否超过50k)利用shap决策图结合LightGBM模型实现异常值检测案例之详细攻略
- 2pc of distributed transaction solution
- 往图片添加椒盐噪声或高斯噪声
- Realize GDB remote debugging function between different network segments
- 一个简单的代数问题的求解
- SAP ABAP BDC (batch data communication) -018
猜你喜欢
从“跑分神器”到数据平台,鲁大师开启演进之路
【SQL实战】一条SQL统计全国各地疫情分布情况
Message queue: how to deal with message backlog?
Question 102: sequence traversal of binary tree
cf:C. Column Swapping【排序 + 模拟】
JVM the truth you need to know
Three level menu data implementation, nested three-level menu data
【日常训练--腾讯精选50】235. 二叉搜索树的最近公共祖先
Five core elements of architecture design
yarn入门(一篇就够了)
随机推荐
[daily training -- Tencent selected 50] 235 Nearest common ancestor of binary search tree
三级菜单数据实现,实现嵌套三级菜单数据
判断文件是否为DICOM文件
Flask1.1.4 Werkzeug1.0.1 源碼分析:啟動流程
Flask1.1.4 Werkzeug1.0.1 源码分析:启动流程
PTA ladder game exercise set l2-004 search tree judgment
async / await
980. 不同路径 III DFS
Randomly generate session_ id
目标检测中的BBox 回归损失函数-L2,smooth L1,IoU,GIoU,DIoU,CIoU,Focal-EIoU,Alpha-IoU,SIoU
Web architecture design process
成为资深IC设计工程师的十个阶段,现在的你在哪个阶段 ?
Determine whether the file is a DICOM file
Go语学习笔记 - gorm使用 - 原生sql、命名参数、Rows、ToSQL | Web框架Gin(九)
How to improve website weight
【SQL实战】一条SQL统计全国各地疫情分布情况
原生小程序 之 input切換 text與password類型
绕过open_basedir
[云原生]微服务架构是什么?
谈fpga和asic的区别