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: how to keep statistics up to date for CBO

RE: how to keep statistics up to date for CBO

From: Connor McDonald <hamcdc_at_yahoo.co.uk>
Date: Thu, 09 Oct 2003 17:04:24 -0800
Message-ID: <F001.005D2980.20031009170424@fatcity.com>


Only thing I'd add I like to compute exact stats for any table less than 'n' rows (where 'n' is small and you can insert your own value here).

Nothing to do with the performance of the stats collection itself, more the access plans that subsequently result. If the optimizer thinks a table has 100 million rows instead of 90 million, then its unlikely to dramatically affect the outcome of the access path evaluation, so small sampling when doing the stats should be fine. But the optimizer thinks a 200 row table only has 100 rows, then you can end up with lots of grief (especially in nested loop scenarios) so a compute may well be the best option

hth
connor


Connor McDonald
web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: connor_mcdonald_at_yahoo.com

"GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will sit in a boat and drink beer all day"



Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  INET: hamcdc_at_yahoo.co.uk

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 Thu Oct 09 2003 - 20:04:24 CDT

Original text of this message

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