In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
With regard to the parsing of the COUNT () function in the Mysql database, most programmers and database engineers have a big difference between Count (1) and Count (*). Some say that Count (1) has better query performance than Count (*), and some say it is lower.
Count (1) is usually queried by the primary key ID index, while Count (*) is queried by the index of all fields.
Count () function parses the execution process-through the index comparison, only the primary key index will take the primary key index, if there is a secondary index, the secondary index will be executed, multiple secondary indexes will go, and the field with the least number of bytes will be queried.
There is no fundamental difference between them, but during execution, Count (*) needs to be parsed internally into Count (1) by Mysql.
So don't dwell on this problem, there are all kinds of things on the Internet, here is a brief explanation for you, the above description has been proved by the test!
Children's shoes with other problems can talk to me privately through the website.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.