Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
kinoxyz1 committed Oct 15, 2024
1 parent fcfe008 commit d8cb08a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions note/MySQL/MySQL索引优化与查询优化.md
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,10 @@ mysql> explain format=tree select /*+ NO_BNL(t1,t2)*/ count(1) from student join
+----------------------------------------------------------------------------------------------------------------------+
1 row in set, 2 warnings (0.00 sec)
```

在mysql5中测试发现, 当 monitor 字段不存在索引时, 查询了 500s 还未出结果, 可见 mysql8 对索引做出的优化的成效多显著。


几种Join算法性能对比如下:
T1表记录50000条,T2表记录1000条,各种Join算法执行情况如上表:

Expand Down

0 comments on commit d8cb08a

Please sign in to comment.