In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail about MySQL 8.0 new feature flashback index is how, the quality of the article content is high, so Xiaobian share for everyone to make a reference, I hope you have a certain understanding of related knowledge after reading this article.
Oracle uses desc index in many scenarios, so I won't repeat it here. Congratulations, MySQL 8.0 also has a flashback index.
Backward index scan keyword will be seen in the execution plan. In Chinese, it is to search for the range of backward index.
mysql>explain select * from test_backup.paralleltest order by id desc+----+-------------+--------------+------------+-------+---------------+---------+---------+-----+------+----------+---------------------+| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |+----+-------------+--------------+------------+-------+---------------+---------+---------+-----+------+----------+---------------------+| 1 | SIMPLE | paralleltest | | index | | PRIMARY | 602 | | 3000 | 100 | Backward index scan |+---------------------8 ms.
innodb works only with innodb storage engines and is subject to the following limitations:
- Changebuffer is not supported if the index contains a column of descending keys, or if the primary key contains a column of descending indexes
-innodb sql parser does not use descending index
Descending index is the same as ascending index, supporting all data types
·distinct can use descending index
Descending indexes support btree, but hash indexes are not supported
Descending indexes do not support full-text indexes, spatial indexes Descending indexes support regular indexes, and gernerated columns (virtual\stored columns)
min()/max() query optimization does not optimize with indexes with descending keys when there are aggregate function calls but no group by statements
Introduction of descending index, MySQL 8.0 no longer implicitly sorts group by operations
About MySQL 8.0 new features how the index is shared here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.