当前位置: 代码迷 >> Oracle技术 >> oracle10g百万数据性能优化,该怎么处理
  详细解决方案

oracle10g百万数据性能优化,该怎么处理

热度:112   发布时间:2016-04-24 08:37:52.0
oracle10g百万数据性能优化
表system_graduate有120万数据

select count(*) from system_graduate where 1=1 and c_name like'%李%';
执行需要5秒
select * from system_graduate where 1=1 and c_name like'%李%';
执行需要0.125秒
select * from system_graduate where 1=1 and c_name like'%李%' order by c_id;;
执行需要5秒 



请高手指点

------解决方案--------------------
第一和第三句走全表掃描,
第二句在first_row模式下會很快取得結果集的前部分,但如果要全部顯示出來,估計也要5秒
------解决方案--------------------
  相关解决方案