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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
