290w数据量
没加索引之前需要查询1分钟
加上索引需要查询时间在5s之内
删除之前的索引一个大概需要25s
新增一个索引大概在10s之内
索引
删除
drop index 索引名 on 表名
drop index name_idx on tablenanme
新增
alter table 表名 add index 索引名(字段名)
alter table tablenanme add index name_idx(name)
求和
select count(*) from party_belong