当前位置:网站首页>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 .
边栏推荐
猜你喜欢
Understand the context in go language in an article
Preliminary exploration of flask: WSGI
Memory management summary
Numpy notes
Ffprobe common commands
UFO: Microsoft scholars have proposed a unified transformer for visual language representation learning to achieve SOTA performance on multiple multimodal tasks
Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
How to handle exceptions in multithreading?
MySQL组合索引(多列索引)使用与优化案例详解
AI has surpassed Dr. CS in question making?
随机推荐
每周招聘|高级DBA年薪49+,机会越多,成功越近!
中国主要城市人均存款出炉,你达标了吗?
LeetCode 35. Search the insertion position - vector traversal (O (logn) and O (n) - binary search)
力扣刷题01(反转链表+滑动窗口+LRU缓存机制)
The performance of major mainstream programming languages is PK, and the results are unexpected
【大连理工大学】考研初试复试资料分享
Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture
03 storage system
Ffprobe common commands
谈SaaS下如何迅速部署应用软件
深度学习 神经网络案例(手写数字识别)
暑期复习,一定要避免踩这些坑!
Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
LNX efficient search engine, fastdeploy reasoning deployment toolbox, AI frontier paper | showmeai information daily # 07.04
31年前的Beyond演唱会,是如何超清修复的?
c# 实现定义一套中间SQL可以跨库执行的SQL语句
Enter the width!
mysql 联合主键_Mysql 创建联合主键[通俗易懂]
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
Unity脚本API—GameObject游戏对象、Object 对象