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

Home -> Community -> Mailing Lists -> Oracle-L -> Re[2]: Inline View Query Versus Ordinary Query - Comparison

Re[2]: Inline View Query Versus Ordinary Query - Comparison

From: <dgoulet_at_vicr.com>
Date: Wed, 22 May 2002 06:23:32 -0800
Message-ID: <F001.004677DD.20020522062332@fatcity.com>


The biggest problem I've seen with inline view defs is that they most often force a resolution of that view into a temporary table which is then not indexed. Not a problem if the inline view has only a handful of rows, but when that inline view returns several thousand rows you can get into a mess. On the other hand, the optimizer can take a regular view and merge the SQL from the view def and your query into one query that does not require a temp object. It's a trail and error thing.

Dick Goulet

____________________Reply Separator____________________
Author: Stephane Faroult <sfaroult_at_oriole.com>
Date:       5/21/2002 3:07 PM

VIVEK_SHARMA wrote:
>
> Query using Inline View Query an Ordinary one ?
> Which is Better w.r.t. Performance & Why ?
>
> EXAMPLE - Following 2 SAMPLE Queries give the SAME Output .
> But which would be better ?
>

Second is better because it accesses half the number of blocks. In this order of magnitude it matters if you run the query every 10s, not if it's part of this quarterly report.

-- 
Regards,

Stephane Faroult
Oriole Software
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: dgoulet_at_vicr.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 22 2002 - 09:23:32 CDT

Original text of this message

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