这条sql有没优化余地
explain select sum(if(is_hot = 1,1,0) ) as is_hot,sum(if(is_new = 1,1,0) ) as is_new,sum(if(is_best = 1,1,0) ) as is_best ,sum(if(goods_number <= warn_number ,1,0)) as warn ,sum(if(is_alone_sale=1,1,0)) as total FROM `icmall`.`ecs_goods` WHERE is_delete = 0 AND is_real = 1
1 SIMPLE ecs_goods ref delete_real_goods_id,all_info all_info 2 const,const 2302644
以下是这个表的索引情况
ecs_goods 0 PRIMARY 1 goods_id A 2302656 BTREE
ecs_goods 1 cat_id 1 cat_id A 850 BTREE
ecs_goods 1 brand_id 1 brand_id A 348 BTREE
ecs_goods 1 goods_type 1 goods_type A 1 BTREE
ecs_goods 1 goods_name 1 goods_name A 2302656 BTREE
ecs_goods 1 brand_goods_id 1 brand_goods_id A 2302656 BTREE
ecs_goods 1 delete_real_goods_id 1 is_delete A 1 BTREE
ecs_goods 1 delete_real_goods_id 2 is_real A 1 BTREE
ecs_goods 1 delete_real_goods_id 3 goods_id A 2302656 BTREE
现在的查询时间。大概是 10秒,大概有2302715条数据。