Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Dumb Question regarding Indexes
Andreas Sheriff wrote:
> "DA Morgan" <damorgan_at_psoug.org> wrote in message > news:1122653765.484188_at_yasure... >
> > > <flame level="medium" target="Daniel A. Morgan"> > Indexes do not speed up DML > (http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14220/sqlplsql.htm#i18503), > generally. They speed up SELECT statements, specifically. Indexes actually > slow down UPDATE, DELETE, and INSERT statements because the index also has > to be updated, deleted, and inserted, as well as the data in the base table, > though using indexes, the RDBMS can locate faster which data to update and > delete. > In general, indexes help locate data faster, and if the data you need > through a select statement is already in the index, then Oracle doesn't > bother to read the base table; It just uses the data from the index. > > <focus target="Perm"> > Look up Index Organized Tables (IOT). An IOT combines an index and a table > for a faster means of access to data. > Clusters are also good for tables that are typically used in a join, and > materialized views recomputed data so access is faster still. > </focus> > </flame>
You update or delete one row out of a 5,000,000,000 row table by primary key and tell me the index didn't help. I'll be watching for your benchmark.
-- Daniel A. Morgan http://www.psoug.org damorgan_at_x.washington.edu (replace x with u to respond)Received on Fri Jul 29 2005 - 20:16:07 CDT
![]() |
![]() |