当前位置:网站首页>MySQL index optimization
MySQL index optimization
2022-07-04 15:21:00 【Congcong those years】
Catalog
Limit Overlay index + Subquery
Primary key optimization
Page splitting
Insert in disorder id=50 when ,page=1 Will split in half , Move half to page=3 in , then id=50 Insert .
Page merge
Primary key design
Order by
Limit Overlay index + Subquery
SELECT * FROM xxx WHERE ID > =(select id from xxx limit 1000000, 1) limit 20;
SELECT * FROM xxx a JOIN (select id from xxx limit 1000000, 20) b ON a.ID = b.id;
Count
count(1) and count(*) The best performance
Update
update The update of is a row level lock added to the index , Non index will be promoted to table lock .
边栏推荐
- 都在说DevOps,你真正了解它吗?
- 宽度与对齐
- 【读书会第十三期】 音频文件的封装格式和编码格式
- Unity脚本介绍 Day01
- 一篇文章学会GO语言中的变量
- Intelligent customer service track: Netease Qiyu and Weier technology play different ways
- 数据湖治理:优势、挑战和入门
- Introduction to asynchronous task capability of function calculation - task trigger de duplication
- MYSQL索引优化
- 这几年爆火的智能物联网(AIoT),到底前景如何?
猜你喜欢
UFO: Microsoft scholars have proposed a unified transformer for visual language representation learning to achieve SOTA performance on multiple multimodal tasks
How to handle exceptions in multithreading?
The per capita savings of major cities in China have been released. Have you reached the standard?
[Dalian University of technology] information sharing of postgraduate entrance examination and re examination
音视频技术开发周刊 | 252
Redis publier et s'abonner
Unity脚本生命周期 Day02
Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
Understand the context in go language in an article
They are all talking about Devops. Do you really understand it?
随机推荐
Preliminary exploration of flask: WSGI
Halcon knowledge: NCC_ Model template matching
MySQL learning notes - data type (numeric type)
Kubernets pod exists finalizers are always in terminating state
找数字
Unity脚本API—Component组件
Redis shares four cache modes
左右对齐!
Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
Understand the context in go language in an article
输入宽度!
C1 certification learning notes 3 -- Web Foundation
重排数组
What are the concepts of union, intersection, difference and complement?
LeetCode 1184. Distance between bus stops -- vector clockwise and counterclockwise
An article learns variables in go language
宽度精度
AI做题水平已超过CS博士?
MYSQL索引优化