MySQL 8.0.18 Hash Join is not supported by left / right join about connection

In MySQL 8.0.18, an increase of Hash Join new features, it is suitable for field index is not created, do the equivalent relational query. In previous versions, if the field is not connected to create the index, query speed will be very slow, the optimizer will use BNL (nesting block) algorithm.

Hash Join algorithm to the data table stored in a small memory hash table, and the data line by line to match the large table, the hash value is calculated and the qualified data, returned from the client memory.

20150607145104787.png


Generates four tables with sysbench, and delete the default field index k.

1.png

We explain format = tree command to view has been used to hash join algorithm.


But the current 8.0.18 version only supports join. left join and right join failure, please pay attention here.

2.png






Guess you like

Origin blog.51cto.com/hcymysql/2447650