Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> order of predicates affects CPU usage hence elapse time on sequent
Hi,
I have seen a unusual thing:-
TABLE
versus
select count(*) from TABLE
WHERE B between '10-JAN-97' and '10-JAN-98' AND C='SSSS'
Under tkprof oracle 7.3 and under oracle 8.x I see that the IO are simular
but
the CPU usage diffrent by a multiple of four and hence the elapse time are
different. Full table scan is used for both query.
Why should swaping the 'AND' predicate cuase the CPU usage to change????
Cheers Received on Sun Feb 01 1998 - 00:00:00 CST
![]() |
![]() |