Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: cpu time and query column in tkprof output
> 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.
Absolutely true. To be really picky with the words, it can cause CPU =
time to
be worse, too, if you have a busy system. It's because Oracle's =
busy-wait
strategy for latch acquisition is very CPU intensive. The longer a =
process
has to wait for a latch to become available, the more CPU it will burn =
while
busy-waiting.
Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com
* Nullius in verba *
Upcoming events:
- Performance Diagnosis 101: 2/23 Houston, 3/16 Salt Lake City - SQL Optimization 101: 2/7 Dallas - Hotsos Symposium 2005: March 6-10 Dallas - Visit www.hotsos.com for schedule details...
-----Original Message-----
From: oracle-l-bounce_at_freelists.org =
[mailto:oracle-l-bounce_at_freelists.org]
On Behalf Of Martic Zoran
Sent: Thursday, February 03, 2005 4:55 AM
To: yasbs_at_kocbank.com.tr; cary.millsap_at_hotsos.com; =
oracle-l_at_freelists.org
Subject: 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.=20
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.
>=20
>=20> DIFF
> NAME =20
> RUN1 RUN2
=09
__________________________________=20
-- http://www.freelists.org/webpage/oracle-l -- http://www.freelists.org/webpage/oracle-lReceived on Thu Feb 03 2005 - 08:04:59 CST