有一个表om_outstock_itemhty有80多万条记录
select sum(ooih.article_qty) from om_outstock_itemhty ooih这样一个语句需要5秒
          
select sum(ooih.article_qty) from om_outstock_itemhty ooih
  where ooih.operate_date =  
to_date('2010-09-01','YYYY-MM-DD') 也是需要5秒
有好的优化吗?没有加任何索引。
我程序只能接受的范围是1秒呀。
有高手吗?