Skip to content

Commit f77a146

Browse files
authored
Merge pull request Snailclimb#2263 from visitor23/main
typo fix
2 parents cb78980 + 0c1c435 commit f77a146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/database/mysql/mysql-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ ALTER TABLE `cus_order` ADD INDEX id_score_name(score, name);
396396
索引失效也是慢查询的主要原因之一,常见的导致索引失效的情况有下面这些:
397397

398398
- ~~使用 `SELECT *` 进行查询;~~ `SELECT *` 不会直接导致索引失效(如果不走索引大概率是因为 where 查询范围过大导致的),但它可能会带来一些其他的性能问题比如造成网络传输和数据处理的浪费、无法使用索引覆盖;
399-
- 创建了组合索引,但查询条件未准守最左匹配原则;
399+
- 创建了组合索引,但查询条件未遵守最左匹配原则;
400400
- 在索引列上进行计算、函数、类型转换等操作;
401401
- 以 % 开头的 LIKE 查询比如 `LIKE '%abc';`;
402402
- 查询条件中使用 OR,且 OR 的前后条件中有一个列没有索引,涉及的索引都不会被使用到;

0 commit comments

Comments
 (0)