当前位置:网站首页>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
 

原网站

版权声明
本文为[xxxibolva]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202210530475015.html