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: deletes and indexes

Re: deletes and indexes

From: Ed Stevens <nospam_at_noway.nohow>
Date: Thu, 27 Jan 2005 07:20:05 -0600
Message-ID: <peqhv0dh7gnhf1ko3kj3bhdo2h7s0lb2f5@4ax.com>


On 27 Jan 2005 04:39:46 -0800, johnleslie_at_madasafish.com (John Leslie) wrote:

>Do indexes speed up deletes?
>
>I am deleting 100000 rows from a table containing 1 million rows and
>it seems faster without the index. The index is created on the column
>used in the delete where clause.
>
>I created the index specifically to speed up the delete, but is my
>thinking incorrect?

Your thinking is indeed incorrect. Whenever a row is inserted, updated, or deleted, all of the indexes on that table have to be maintained as well, to account for the change. Thanks.

Cohn's Law: The more time you spend in reporting on what you are doing, the less time you have to do anything. Stability is achieved when you spend all your time doing nothing but reporting on the nothing you are doing. Received on Thu Jan 27 2005 - 07:20:05 CST

Original text of this message

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