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 -> Index use on views

Index use on views

From: Ana Ribeiro <ana.ribeiro_at_reflective.com>
Date: 25 Jan 2007 09:47:08 -0800
Message-ID: <1169747228.784255.106500@j27g2000cwj.googlegroups.com>


Hi all,
I have a view that selects the WHOLE data from several tables but grouping the data in a special way. This way, whenever I query this view a FULL TABLE SCAN is executed.

One of the underlying tables has an index on the column REGION_ID, and whenever I query this table using WHERE REGION_ID = X this index is used and I get a very fast response.

My Question is:
If I query THE VIEW using the same predicate (WHERE REGION_ID = X), will my query use an index on this column instead of executing a Full Table Scan? Or will ANY QUERIES on this view execute a FULL TABLE SCAN ?

FYI, I am using Oracle 9i.

Many thanks in advance,
Ana Received on Thu Jan 25 2007 - 11:47:08 CST

Original text of this message

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