sql 첫번째 실행시킬 때보다 2,3번째부터는 속도가 빨라집니다.
trace로 보았을 때 disk에서 차이가 나는 걸로 보아서 처음에는 disk를 읽다가
다음부터는 disk를 읽지 않는 것 같은데 이걸 어떡해 해석하면 될까요?
---
처음실행
---
Call Count CPU Time Elapsed Time Disk Query Current Rows
------- ------ -------- ------------ ---------- ---------- ---------- ----------
Parse 1 0.010 0.003 0 0 0 0
Execute 1 0.000 0.000 0 0 0 0
Fetch 1 0.660 4.838 1527 43126 0 0
------- ------ -------- ------------ ---------- ---------- ---------- ----------
Total 3 0.670 4.841 1527 43126 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user: TOP_USER (ID=93)
Rows Row Source Operation
------- ---------------------------------------------------
0 STATEMENT
0 SORT ORDER BY
0 FILTER
9775 TABLE ACCESS BY INDEX ROWID ZZAP_DEPT_SLIP_V1
9775 INDEX RANGE SCAN IN_ZZAP_DEPT_SLIP_V1_02 OF IN_ZZAP_DEPT_SLIP_V1_02 (NONUNIQUE)
0 TABLE ACCESS BY INDEX ROWID TCM_EXECRSLT
6333 INDEX RANGE SCAN IU_TCM_EXECRSLT OF IU_TCM_EXECRSLT (NONUNIQUE)
---------------------------------------------------------
--
2번째 이후
--
all Count CPU Time Elapsed Time Disk Query Current Rows
------- ------ -------- ------------ ---------- ---------- ---------- ----------
Parse 1 0.000 0.000 0 0 0 0
Execute 1 0.000 0.000 0 0 0 0
Fetch 1 0.290 0.278 0 42162 0 0
------- ------ -------- ------------ ---------- ---------- ---------- ----------
Total 3 0.290 0.278 0 42162 0 0
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user: TOP_USER (ID=93)
Rows Row Source Operation
------- ---------------------------------------------------
0 STATEMENT
0 SORT ORDER BY
0 FILTER
9775 TABLE ACCESS BY INDEX ROWID ZZAP_DEPT_SLIP_V1
9775 INDEX RANGE SCAN IN_ZZAP_DEPT_SLIP_V1_02 OF IN_ZZAP_DEPT_SLIP_V1_02 (NONUNIQUE)
0 TABLE ACCESS BY INDEX ROWID TCM_EXECRSLT
6333 INDEX RANGE SCAN IU_TCM_EXECRSLT OF IU_TCM_EXECRSLT (NONUNIQUE)