select
executions,
disk_reads,
buffer_gets,
round((buffer_gets - disk_reads) / buffer_gets, 2) hit_radio,
round(disk_reads / executions, 2) reads_per_run,
sql_text
from v$sqlarea
where executions > 0 and buffer_gets > 0 and (buffer_gets - disk_reads) / buffer_gets < 0.8
order by 2 desc;
SQLServer找出執行慢的SQL語句
select total elapsed time execution count 1000 n 平均時間ms total elapsed time 1000 n 總花費時間ms total worker time 1000 n 所用的cpu總時間ms total physical reads n ...
SQLServer找出執行慢的SQL語句
select total elapsed time execution count 1000 n 平均時間ms total elapsed time 1000 n 總花費時間ms total worker time 1000 n 所用的cpu總時間ms total physical reads n ...
sql語句執行效率
兩種執行的效果一樣,但執行的速度不一樣,在大資料的時候,可看出。select distinct a.o flowid from chengjiinfo as a where k kecheng not in select kemu from chengjidankeinfo where o flow...