mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-10-25 02:43:42 +00:00
co-authored by
Claude Fable 5
parent
24514f45a0
commit
25c3035321
+1
-1
@@ -163,7 +163,7 @@ customer_id_selectivity: 0.0373
|
||||
|
||||
#### 4. 前缀索引
|
||||
|
||||
对于 BLOB、TEXT 和 VARCHAR 类型的列,必须使用前缀索引,只索引开始的部分字符。
|
||||
对于 BLOB 和 TEXT 类型的列,必须使用前缀索引,只索引开始的部分字符;对于 VARCHAR 和 CHAR 类型的列,可以选择使用前缀索引来减小索引的大小。
|
||||
|
||||
前缀长度的选取需要根据索引选择性来确定。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user