Skip to content

Commit 77eaf5b

Browse files
author
chengwei2
committed
update
1 parent a075b60 commit 77eaf5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

_posts/2017-10-22-数据库索引技术.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ title的选择性不足0.0001(精确值为0.00001579),所以实在没有
200200
此时再执行一遍按名字查询,比较分析一下与建索引前的结果:
201201
![索引选择性与前缀索引](/img/database-index/database-index-28.png)
202202
性能的提升是显著的,查询速度提高了120多倍。
203+
203204
> 前缀索引兼顾索引大小和查询速度,但是其缺点是不能用于ORDER BY和GROUP BY操作,也不能用于Covering index(即当索引本身包含查询所需全部数据时,不再访问数据文件本身)。
204205
205206
接下来我们从结构优化和查询优化两方面来了解一些具体的优化手段:

0 commit comments

Comments
 (0)