4

btree索引无法使用处理方式

 2 years ago
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.
neoserver,ios ssh client

btree索引无法使用处理方式

精选 原创

瀚高实验室 2022-09-02 11:31:10 博主文章分类:Highgo DB ©著作权

文章标签 v9 解决方案 数据库 文章分类 MySQL 数据库 阅读数289

瀚高数据库

系统平台: 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);

创建成功。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK