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

How to solve the problem that MySQL8.0.18 Hash Join does not support left/right join left and right connection

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

Share

Shulou(Shulou.com)05/31 Report--

This article mainly describes how to solve MySQL8.0.18 Hash Join does not support left/right join left and right join problems, the article is very detailed, has a certain reference value, interested friends must read!

In MySQL 8.0.18, a new Hash Join feature was added, which is suitable for fields that have not been indexed to do equivalent association queries. In previous versions, queries were slow if the joined fields were not indexed, and the optimizer used the BNL (Block Nested) algorithm.

Hash Join algorithm is to store a small table of data into a hash table in memory, and line by line to match the data in the large table, calculate the hash value and return the qualified data from memory to the client.

Use sysbench to generate 4 tables and remove the default k field index.

We can use the explain format=tree command to see that the hash join algorithm has been used.

However, version 8.0.18 only supports join. The left and right joins are disabled, please note here.

The above is "How to solve MySQL8.0.18 Hash Join does not support left/right join left and right join problems" All the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to 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: 297

*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