当前位置:网站首页>[MySQL] Using join buffer (Block Nested Loop) in left join due to character set in mysql
[MySQL] Using join buffer (Block Nested Loop) in left join due to character set in mysql
2022-08-10 23:12:00 【Tao Shihan】
I found that the index was not used when querying a sql today
I read it carefully many times, and I have added all the indexes that should be added, but it still doesn't work
View with explain
Why does the index fail
- Implicit conversion causes index invalidation
- With the growth of the table, the data from the where condition is too much, more than 15%, which makes the index invalid (it will cause the CBO calculation to use the index to cost more than the whole table)
- Inconsistent character sets cause the index to fail, one utf8 and one utf8mb4
My main problem here is that the character set is inconsistent and the index is invalid
Convert the character set successfully
ALTER TABLE user CONVERT TO CHARSET utf8mb4;
边栏推荐
- 威纶通触摸屏如何在报警的同时,显示出异常数据的当前值?
- canvas
- Detailed installation steps and environment configuration of geemap
- 【秋招】【更新中ing】手撕代码系列
- HGAME 2022 Final writeup
- LeetCode Daily 2 Questions 01: Reverse Strings (both 1200) Method: Double Pointer
- RecyclerView滑动监听
- 浅谈jsfuck编码
- How many threads does LabVIEW allocate?
- LeetCode每日两题02:反转字符串中的单词 (均1200道)
猜你喜欢
virtual address space
KRONES克朗斯电源维修0-901-17-350-8技术概论
虚拟地址空间
IFIT的架构与功能
DC-7靶场下载及渗透实战详细过程(DC靶场系列)
geemap的详细安装步骤及环境配置
LeetCode Daily 2 Questions 02: Reverse the words in a string (1200 each)
OneNote 教程,如何在 OneNote 中整理笔记本?
68: Chapter 6: Develop article services: 1: Content sorting; article table introduction; creating [article] article services;
基于交流潮流的电力系统多元件N-k故障模型研究(Matlab代码实现)【电力系统故障】
随机推荐
确诊了!是Druid1.1.20的锅,查询无法映射LocalDateTime类型(带源码解析及解决方案)
Mysql's partial table master-slave construction and new table
"DevOps Night Talk" - Pilot - Introduction to CNCF Open Source DevOps Project DevStream - feat. PMC member Hu Tao
OneNote 教程,如何在 OneNote 中整理笔记本?
风控逻辑利器---规则引擎
实例052:按位或
file IO-buffer
ASCII, Unicode and UTF-8
常见的加密方式有哪几种,各有哪些优缺点
带你造轮子,自定义一个随意拖拽可吸边的View
68: Chapter 6: Develop article services: 1: Content sorting; article table introduction; creating [article] article services;
金山云CEO王育林离职:正值冲刺港股之际 雷军曾送金砖
68:第六章:开发文章服务:1:内容梳理;article表介绍;创建【article】文章服务;
Splunk中解决数据质量问题常见日期格式化
2021 IDEA creates web projects
实例054:位取反、位移动
Mysql之部分表主从搭建及新增表
计算需要的MIPI lane数目
MUI框架开发app中出现的问题
自学软件测试不知道该如何学起,【软件测试技能图谱|自学测试路线图】