Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Re: performance issue on select count(*)

Re: Re: performance issue on select count(*)

From: Binley Lim <Binley.Lim_at_xtra.co.nz>
Date: Tue, 28 Oct 2003 18:29:24 -0800
Message-ID: <F001.005D4D8A.20031028182924@fatcity.com>


"Exactly" my point! ;-)

You cannot use it for anymore than that, and neither should you ignore it completely.

> yes bchr is only useful at extremes, but its based on interpretation. if
you have a very high BCHR, you probably have alot of very bad sql.
>
> if you have a very low one AND are in a type of application where you
should(namely OLTP) you may want to consider increasing your buffer cache.
>
> mladen is right. there is no 'exact' very high and very low. you have to
interpret it.
>
> that is about it. Anyone who uses it for anymore than that is wrong.
> >
> > From: Mladen Gogala <mladen_at_wangtrading.com>
> > Date: 2003/10/28 Tue PM 12:09:34 EST
> > To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> > Subject: Re: performance issue on select count(*)
> >
> > So, what exactly is indicated by a high or low hit rate? What, exactly,
is "high"
> > and what do you consider "low"?
> > What "HR" are you talking about?
> > This would be the infamous BCHR:
> >
> > select 'bc_hit_ratio' ratio,( sum(decode(name, 'consistent
gets',value,0))
> > + sum(decode(name,'db block gets', value,0))
> > - sum(decode(name,'physical reads', value,0)))
> > / ( sum(decode(name, 'consistent gets',value,0))
> > + sum(decode(name,'db block gets', value,0)) ) * 100
> > from v$sysstat
> >
> > What exactly should the number returned by this query tell me?
> >
> >
> > On 10/28/2003 10:59:25 AM, Binley Lim wrote:
> > >
> > > The symptom suggests caching is a big factor here - most likely
> > > block-buffers.
> > >
> > > Contrary to ?current? popular beliefs, BCHR is still a very relevant
> > > performance indicator - either being very high, or being too low -
both of
> > > which gives a good indication of something that needs to be looked at.

> > >
> > >
> > > > I would be interested to know if there is a way to speed up the
initial
> > > > execution or how to diagnose what the delay was. It does not seems
right
> > > > that there is such a big difference in elapsed time between the
initial
> > > and
> > > > subsequent execution.
> > >
> > >
> > > --
> > > Please see the official ORACLE-L FAQ: http://www.orafaq.net
> > > --
> > > Author: Binley Lim
> > > INET: Binley.Lim_at_xtra.co.nz
> > >
> > > Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> > > San Diego, California -- Mailing list and web hosting services
> > > ---------------------------------------------------------------------
> > > To REMOVE yourself from this mailing list, send an E-Mail message
> > > to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> > > the message BODY, include a line containing: UNSUB ORACLE-L
> > > (or the name of mailing list you want to be removed from). You may
> > > also send the HELP command for other information (like subscribing).
> > >
> >
> > Mladen Gogala
> > Oracle DBA
> >
> >
> >
> > Note:
> > This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks.
> > Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.net
> > --
> > Author: Mladen Gogala
> > INET: mladen_at_wangtrading.com
> >
> > Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> > San Diego, California -- Mailing list and web hosting services
> > ---------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an E-Mail message
> > to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> > the message BODY, include a line containing: UNSUB ORACLE-L
> > (or the name of mailing list you want to be removed from). You may
> > also send the HELP command for other information (like subscribing).
> >
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: <ryan_oracle_at_cox.net
> INET: ryan_oracle_at_cox.net
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Binley Lim
  INET: Binley.Lim_at_xtra.co.nz

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Oct 28 2003 - 20:29:24 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US