- 论坛徽章:
- 0
|
同样的sql,在jboss中查询速度慢,在其他地方却很快?
以下是用jdbc直接访问的日志:
********************************************************************************
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
********************************************************************************
SELECT t0_o.YSID
FROM
YD.HS_DFLSZ t0_o WHERE (t0_o.SFRQ BETWEEN :1 AND :2 AND t0_o.DFZT = 20 AND
t0_o.ZFFS = 100 AND t0_o.YHDM = :3)
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 171 0.00 0.00 0 764 0 1707
total 173 0.00 0.00 0 764 0 1707
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 127
Rows Row Source Operation
------- ---------------------------------------------------
1707 PARTITION RANGE ALL PARTITION: START=1 STOP=85
1707 TABLE ACCESS BY LOCAL INDEX ROWID HS_DFLSZ PARTITION: START=1 STOP=85
10968 INDEX RANGE SCAN PARTITION: START=1 STOP=85 (object id 362173)
同样的sql,相差为何这样大呢? |
|