当前位置:网站首页>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 .
边栏推荐
- They are all talking about Devops. Do you really understand it?
- LNX efficient search engine, fastdeploy reasoning deployment toolbox, AI frontier paper | showmeai information daily # 07.04
- TechSmith Camtasia studio 2022.0.2 screen recording software
- Quick introduction to automatic control principle + understanding
- Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
- Preliminary exploration of flask: WSGI
- PXE network
- Openresty redirection
- Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
- 一篇文章搞懂Go语言中的Context
猜你喜欢
Memory management summary
Understand the context in go language in an article
干货 | fMRI标准报告指南新鲜出炉啦,快来涨知识吧
numpy笔记
中国主要城市人均存款出炉,你达标了吗?
产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现
Unity脚本常用API Day03
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
Preliminary exploration of flask: WSGI
深度学习 神经网络案例(手写数字识别)
随机推荐
大神详解开源 BUFF 增益攻略丨直播
Align left and right!
numpy笔记
宽度与对齐
MySQL学习笔记——数据类型(2)
Decimal, exponential
案例分享|金融业数据运营运维一体化建设
這幾年爆火的智能物聯網(AIoT),到底前景如何?
LeetCode 35. Search the insertion position - vector traversal (O (logn) and O (n) - binary search)
深度学习 网络正则化
Redis 解决事务冲突之乐观锁和悲观锁
Halcon knowledge: NCC_ Model template matching
hexadecimal
LeetCode 1184. 公交站间的距离 ---vector顺逆时针
Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked
. Net applications consider x64 generation
Enter the width!
go-zero微服务实战系列(九、极致优化秒杀性能)
UFO: Microsoft scholars have proposed a unified transformer for visual language representation learning to achieve SOTA performance on multiple multimodal tasks
Optimization method of deep learning neural network