首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

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

2012-03-26 
oracle10g百万数据性能优化表system_graduate有120万数据select count(*) from system_graduate where 11

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秒
[解决办法]

热点排行