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: is rebuilding indexes necessary after import?

Re: is rebuilding indexes necessary after import?

From: Richard Foote <richard.foote_at_bigpond.com>
Date: Thu, 23 Dec 2004 01:45:47 +1000
Message-ID: <029a01c4e83d$4ec13330$0100000a@FOOTE>


Comments below

On Wed, 22 Dec 2004 02:37:25 -0500, Mark J. Bobak <mark_at_bobak.net> wrote:
> No, because import does not really "import" indexes. It issues a create
> index statement. So, the indexes are freshly built at the end of an
> import.
> -Mark

That begs the question, when is the create index statement issued? 'Create table, create index, import rows' and 'create table, import rows, create index' could lead to different results in terms of index efficiency. If the order of the data is such that the leading edge of the index is monotonically increasing or decreasing then you'll probably get an unbalanced and inefficient index (the same as you do with any increasing indexed value) if the index is created before the before the rows are imported and isn't reverse key.

Hi Stephen,

Monotonically increasing indexes do not become unbalanced and in the vast majority of cases, don't become inefficient.

Please take a look at :
http://www.actoug.org.au/Downloads/oracle_index_internals.pdf

One day, the message will get through.

One day ...

Cheers

Richard

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Dec 22 2004 - 08:39:12 CST

Original text of this message

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