当前位置:网站首页>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 .
边栏推荐
- Luo Gu - some interesting questions
- Flutter reports an error no mediaquery widget ancestor found
- LeetCode 35. Search the insertion position - vector traversal (O (logn) and O (n) - binary search)
- CentOS 6.3 下 PHP编译安装JSON模块报错解决
- 宽度精度
- Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
- 深度学习 神经网络案例(手写数字识别)
- 深度学习 神经网络的优化方法
- Techsmith Camtasia Studio 2022.0.2屏幕录制软件
- Unity脚本API—Transform 变换
猜你喜欢

暑期复习,一定要避免踩这些坑!

干货 | fMRI标准报告指南新鲜出炉啦,快来涨知识吧

. Net applications consider x64 generation

近一亿美元失窃,Horizon跨链桥被攻击事件分析

案例分享|金融业数据运营运维一体化建设
![[local differential privacy and random response code implementation] differential privacy code implementation series (13)](/img/fe/f6a13dcf31ac67633ee5a59d95149d.jpg)
[local differential privacy and random response code implementation] differential privacy code implementation series (13)

Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked

Summer Review, we must avoid stepping on these holes!

Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
Redis shares four cache modes
随机推荐
How to rapidly deploy application software under SaaS
flutter 报错 No MediaQuery widget ancestor found.
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
【学习笔记】拟阵
MySQL学习笔记——数据类型(2)
Enter the width!
Unity脚本介绍 Day01
[Dalian University of technology] information sharing of postgraduate entrance examination and re examination
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
对话龙智高级咨询顾问、Atlassian认证专家叶燕秀:Atlassian产品进入后Server时代,中国用户应当何去何从?
左右对齐!
c# 实现定义一套中间SQL可以跨库执行的SQL语句
Flutter reports an error no mediaquery widget ancestor found
Usage of database functions "recommended collection"
unity update 协程_Unity 协程的原理
Openresty redirection
基于MAX31865的温度控制系统
Luo Gu - some interesting questions 2
大神详解开源 BUFF 增益攻略丨直播
Techsmith Camtasia Studio 2022.0.2屏幕录制软件