4
btree索引无法使用处理方式
source link: https://blog.51cto.com/u_13646489/5644334
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
btree索引无法使用处理方式
精选 原创瀚高数据库
系统平台: Microsoft Windows (64-bit) 10
版本: 6.0
创建索引报错:
CREATE INDEX v9_searchdata1 ON v9_search USING BTREE (data);
错误:索引行需要 12840 字节,最大值为 8191。
btree 索引中存储的是原始值。因此,当字段非常大时,btree 索引可能无法使用。
这种情况下可以使用 hash index。
CREATE INDEX v9_searchdata ON v9_search USING hash(data);
创建成功。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK