当前位置:网站首页>[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;
边栏推荐
- OneNote tutorial, how to organize notebooks in OneNote?
- Mysql's partial table master-slave construction and new table
- PyQt5 窗口自适应大小
- CFdiv2-Beautiful Mirrors-(期望)
- 实例050:随机数
- 蓝帽杯 2022 web/misc writeup
- 数学建模准备知识
- Btree索引和Hash索引
- Spark基础【RDD转换算子】
- LeetCode Daily 2 Questions 01: Reverse Strings (both 1200) Method: Double Pointer
猜你喜欢
"DevOps Night Talk" - Pilot - Introduction to CNCF Open Source DevOps Project DevStream - feat. PMC member Hu Tao
2021 IDEA creates web projects
计算需要的MIPI lane数目
Detailed installation steps and environment configuration of geemap
MySQL performance schema性能分析实战
二叉树 | 代码随想录学习笔记
koa框架(一)
风控逻辑利器---规则引擎
JS学习 2022080
德科立科创板上市:年营收7.3亿 市值59亿
随机推荐
面试官: AMS在Android起到什么作用,简单的分析下Android的源码
BM13 determines whether a linked list is a palindrome
实例049:lambda
常用代码扩展点设计方式
蓝帽杯 2022 web/misc writeup
RK3399平台开发系列讲解(内核驱动外设篇)6.35、IAM20680陀螺仪介绍
一、ICESat-2数据查询,下载,与处理
[Autumn Recruitment] [Updating ing] Hand Tear Code Series
【640. 求解方程】
Distribution Network Expansion Planning: Consider Decisions Using Probabilistic Energy Production and Consumption Profiles (Matlab Code Implementation)
Introduction to the use of counter instructions in Rockwell AB PLC RSLogix5000
【软件测试】2022年最火的十大测试工具,你掌握了几个
(PC+WAP)带手机端pbootcms模板园林景观类网站
geemap的详细安装步骤及环境配置
虎牙自动发弹幕换牌子
pytorch tear CNN
LeetCode Daily 2 Questions 02: Reverse the words in a string (1200 each)
CFdiv2-Common Number-(奇偶数二分+规律)
这款可视化工具神器,更直观易用!太爱了
BM13判断一个链表是否为回文结构