Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Performance, new info!
Ora 8.1.7.
NT2000
I enabled sql_trace en timed_statistics.
Several times I ran the query:
"select id_district district_id, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)"
(district table is imported an contains 20 records, district_street table is imported an contains 2000 records)
Each run I changed the query a little: alias 'district_id' to district_id1, district_id2, district_id3 etc. (see below).
Look a the outcome of the last run!
I took more than 2 seconds!
Can someone tell me what the reason can be?
select id_district district_id1, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
SELECT ORA_TQ_BASE$.NEXTVAL
FROM
DUAL
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
1 SEQUENCE 1 TABLE ACCESS FULL DUAL ****************************************************************************
update seq$ set increment$=:2,minvalue=:3,maxvalue=:4,cycle#=:5,order$=:6,
cache=:7,highwater=:8,audit$=:9
where
obj#=:1
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Rows Row Source Operation
------- ---------------------------------------------------
1 UPDATE SEQ$ 1 INDEX UNIQUE SCAN (object id 99) ****************************************************************************
select id_district district_id2, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
select id_district district_id3, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
select id_district district_id4, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
select id_district district_id5, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
select id_district district_id6, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
select id_district district_id7, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
select id_district district_id8, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
select id_district district_id9, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
select id_district district_id10, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
select id_district district_id11, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
select id_district district_id12, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
select id_district district_id13, district_name
FROM district, district_street where
(district_id=id_district) AND (place_street_id=707)
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 20
![]() |
![]() |