Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Performance of views

Performance of views

From: Helmut Daiminger <hdaiminger_at_vivonet.com>
Date: Wed, 02 May 2001 14:10:03 -0700
Message-ID: <F001.002F7CB6.20010502141924@fatcity.com>

Hi!

Some of our developers are having concerns about using views in the application. So they approached me and wanted to clarify some of their issues.

When I issues a "select * from viewname", Oracle executes the underlying select statement of the view. This underlying statement should be optimized
(using availabale indexes on tables etc.)

If I issue a "select * from viewname where condition < 3" or the like, will the indexes still be used. Or how is this statement executed? Does Oracle first run the underlying select statement and then apply the "where condition < 3" to the returned result set? Or is the statement being rewritten internally?

The Oracle documentation is not very clear on this. Any ideas would be appreciated.

This is 8.1.6 on Win2k.

Thanks,
Helmut

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Helmut Daiminger
  INET: hdaiminger_at_vivonet.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Wed May 02 2001 - 16:10:03 CDT

Original text of this message

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