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

Home -> Community -> Usenet -> c.d.o.server -> Re: Difference between build index and gather stat

Re: Difference between build index and gather stat

From: DA Morgan <damorgan_at_psoug.org>
Date: Wed, 19 Apr 2006 13:09:45 -0700
Message-ID: <1145477381.517032@yasure.drizzle.com>


Jaap W. van Dijk wrote:

> ... if you have an enabled
> primary key, Oracle will keep an index on the column or columns on
> which you defined the key, and will keep this up to date when using
> DML. So yes, you can expect Oracle to use your index again.
>
> Jaap.

Had I not just spent 3 days taking Jonathan Lewis' Optimizing Oracle seminar I'd have agreed ... but now I hedge on giving this advice.

Oracle will, of course, keep the index up-to-date. But changes in statistics, changes in data, changes in lots of places could cause the optimizer to make different choices.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Wed Apr 19 2006 - 15:09:45 CDT

Original text of this message

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