Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed explanation of the concepts of Using where and Using index in MySQL query optimization

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you a detailed explanation of the concepts of Using where and Using index in MySQL query optimization. The article is rich in content and analyzes and describes it from a professional point of view. I hope you can get something after reading this article.

"Using where; Using index" often appears in the Extra column in MySQL's query execution plan.

The official MySQL manual explains:

Using index does not read data files and only gets data from index files

Using where filter tuples have nothing to do with whether to read data files or index files

But the MySQL manual says at Using index:

1 there is no Using where, only Using index: do not read the data file, all fields can be obtained from the index (Without Using where, the optimizer may be reading the index to avoid reading data rows but not using it for lookups)

2 has both Using where and Using index: because "Without Using where..." This context means that if you have both Using where and Using index, you must read the data file.

Using where only filters tuples and has nothing to do with reading data files or index files.

The above is the detailed explanation of the concepts of Using where and Using index in MySQL query optimization shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report