Xref: alice comp.databases.oracle.misc:35488
Path: alice!news-feed.fnsi.net!newsout.pdxfiber.net!remarQ73!supernews.com!remarQ.com!remarQ69!corp.remarQ.com!not-for-mail
From: PMG <peteg@garlic.com>
Newsgroups: comp.databases.oracle.misc
Subject: Question about efficiency of Views
Date: Tue, 06 Jul 1999 22:06:58 -0700
Organization: Posted via RemarQ, http://www.remarQ.com - The Internet's Discussion Network
Lines: 17
Message-ID: <3782E072.49372FE1@garlic.com>
NNTP-Posting-Date: Wed, 07 Jul 1999 05:06:17 GMT
X-Trace: 931323977.303.53 CGKEH89NSA849D0C3C qube-01.us-ca.remarq.com
X-Complaints-To: newsabuse@remarQ.com
X-Mailer: Mozilla 4.6 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi there,

Suppose I have created a view, and then perform a select statement
against the view, with some kind of a WHERE clause.

My question is this: does the Oracle engine first perform the entire
query as delineated in the view script, and then perform a sub-select
from the view as indicated by the WHERE clause, or is the engine smart
enough to substitue the WHERE condition immediately?

IOW, is there one pass or two passes at the data? Or are they equivalent
in terms of efficiency?

TIA

Pete

