当前位置:网站首页>Database query optimization method
Database query optimization method
2022-06-25 04:56:00 【xxxibolva】
1.SELECT Try to avoid the use of *
2. Delete duplicate records
3. Delete all tables ( Retention structure ) Time use TRUNCATE Instead of DELETE
4. use WHERE Instead of HAVING
5. use EXISTS Instead of IN、 use NOT EXISTS Instead of NOT IN
6. Using indexes to improve efficiency , But not more is better , The index number of a table should not exceed 6 individual
7. Try to use numeric fields
8. Try to avoid full scan , You can first consider WHERE And ORDER BY Index the columns involved
Supplement and sort out ing
边栏推荐
- How do the defi protocols perform under this round of stress test?
- Excel exports data to SQL and pictures to folder through macro | VBA
- 小白一键重装官网下载使用方法
- Sleep more, you can lose weight. According to the latest research from the University of Chicago, sleeping more than 1 hour a day is equivalent to eating less than one fried chicken leg
- 以太网是什么要怎么连接电脑
- Write shell script error summary
- Construction scheme of distributed websocket
- Mysql interactive_ Timeout and wait_ Timeout differences
- Eyeshot 2022 Released
- IronOCR 2022.1 Crack
猜你喜欢

Efficient NoSQL database service Amazon dynamodb experience sharing
Triangle class (construction and deconstruction)

Bingbing's learning notes: implementation of circular queue

Working principle of asemi three-phase rectifier bridge

leetcode1221. 分割平衡字符串

PHP calls map API

Machine learning deep learning -- Vectorization

Web3 DApp用户体验最佳实践

ROS2/DDS/QoS/主题的记录

Kotlin Compose 完善toDo项目 Surface 渲染背景 与阴影
随机推荐
JS, BOM, DOM (VI)
Precise delay based on Cortex-M3 and M4 (systick delay of system timer can be used for STM32, aducm4050, etc.)
File upload vulnerability shooting range upload labs learning (pass1-pass5)
Triangle class (construction and deconstruction)
Coordinate system left multiply right multiply
大话云原生数据库中的存算分离
Penetration test - directory traversal vulnerability
The SQL response is slow. What are your troubleshooting ideas?
JS' sort() function
基于Cortex-M3、M4的精准延时(系统定时器SysTick延时,可用于STM32、ADuCM4050等)
dotnet-exec 0.4.0 released
CTF_ Web: Changan cup-2021 old but a little new & asuka
Concat() in JS
高效的NoSQL数据库服务Amozon DynamoDB体验分享
Attack and defense world web baby Web
Separation of storage and computing in Dahua cloud native database
Chapter IX app project test (2) test tools
How to make colleagues under the same LAN connect to their own MySQL database
parallel recovery slave next change & parallel recovery push change
Qdebug June 2022