Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: cpu time and query column in tkprof output
Hi Yasin,
These are LATCH stats and not STAT stats.
Latch statistics are very important to predict which SQL will behave better when running in multiuser environment, with many processes doing the same or similar SQL's causing them to wait/lock/block on these latches.
Stats are showing more about what you needed to perform and partially on what you spend your pure CPU time.
Your first SQL can be faster but it is less scalable and can cause ELAPSED time to be worse if you have very busy system.
You should test it in real case scenario while having other things running (ideally the production :)
Regards,
Zoran
> Here are all the stats. Yes the execution plans are
> different. What i am
> trying to do is to re-write the sql for better
> performance. I re-write
> the sql ang get lower number of logical reads, but
> lose in other areas
> as i mentioned.
>
> So, by looking at the following stats and cpu time
> and elapsed time, i
> understand that i should stick with the original sql
> as the new sql
> performs worse.
>
> NAME
> RUN1 RUN2
> DIFF
> --------------------------------------------------
> ---------- ----------
> ----------
> LATCH.job_queue_processes parameter latch
> 1 0
> -1
> LATCH.ktm global data
> 0 1
> 1
> LATCH.ncodef allocation latch
> 1 0
> -1
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Feb 03 2005 - 05:57:44 CST