表内只有2个字段,
bigint id(primary key)
mediumtext content有22万多数据,任何查询操作都很慢。
我知道问题应该在 content 那个大字段上,对它还做了index,仍然没有效果。
请问有何解决方法?
bigint id(primary key)
mediumtext content有22万多数据,任何查询操作都很慢。
我知道问题应该在 content 那个大字段上,对它还做了index,仍然没有效果。
请问有何解决方法?
select count(id) from tableA;
select count(content) from tableA;
select count(*) from tableA;
select id from tableA;
select content from tableA;select content from tableA limit 2000;都很慢
Try to increase the parameter named read_buffer_size.
我尝试着改了innodb_buffer_pool_size,也没什么效果。