Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: --> outcome of almost same query
Hi, when I run the query using district2 table (created by means of: "select
* from district") the performance
is always ok.
See below, I also ran it 31 times. The explain plan is much simpler, I do not know why???
regards
Stephan
select id_district district_id, district_name
FROM district2, 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 (PREVENT)
Rows Execution Plan
------- --------------------------------------------------- 0 SELECT STATEMENT GOAL: CHOOSE 0 HASH JOIN 0 INDEX GOAL: ANALYZED (FAST FULL SCAN) OF 'DISTRICT_STREET_4' (NON-UNIQUE) 0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DISTRICT2'
****************************************************************************
![]() |
![]() |