Skip to content

Commit 71c42fd

Browse files
committed
add MySQL 字符集不一致导致索引失效的一个真实案例
1 parent a39a404 commit 71c42fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/database/MySQL高性能优化规范建议.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ Innodb 支持事务,支持行级锁,更好的恢复性,高并发下性能
7676

7777
兼容性更好,统一字符集可以避免由于字符集转换产生的乱码,不同的字符集进行比较前需要进行转换会造成索引失效,如果数据库中有存储 emoji 表情的需要,字符集需要采用 utf8mb4 字符集。
7878

79+
参考文章:[MySQL 字符集不一致导致索引失效的一个真实案例](https://blog.csdn.net/horses/article/details/107243447)
80+
7981
### 3. 所有表和字段都需要添加注释
8082

8183
使用 comment 从句添加表和列的备注,从一开始就进行数据字典的维护

0 commit comments

Comments
 (0)