Skip to Main Content

Breadcrumb

Question and Answer

Tom Kyte

Thanks for the question, shankar.

Asked: November 25, 2014 - 9:57 am UTC

Last updated: November 26, 2014 - 7:08 pm UTC

Version: 12.1.3

Viewed 1000+ times

You Asked

Index on standard table affect the performance ? If not why oracle is not supporting for the custom index?

and Tom said...

I have no idea what you mean by "custom index"

please explain.



yes, an index will affect performance - it will possibly make some things much much much faster, and some other things slower.


You put an index on a table (say on the ENAME column in the EMP table) so that a query like:


select * from emp where ename = 'TKYTE'

would be able to return the result virtually instantaneously.

That same index however will necessarily slow down:

insert into emp(ename,hiredate) values ('someone', sysdate );


That insert will have to maintain the index - extra work. A small price to pay for being able to get to the individual row much faster.



Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

INDEXING ON TABLE

shankar jayaraman, November 27, 2014 - 3:30 am UTC

Dear Sir,

Thank you very much for your reply and it is very useful to understand the basics and its application.

Thanking you