If it appears as though this might perform better than a single query,
then it's probably because the existing query's execution plan is
sub-optimal. Fix it and forget about splitting it up. If you feel
compelled to split it up, then consider that act as an exercise in
learning how to optimize SQL execution plans. The act of splitting it up
will probably reveal one of two things:

1. The query's semantics aren't selective enough to make any plan
acceptable (either because of the number of blocks and rows that must be
visited or because of the design of the schema).
2. There is a more optimal execution plan for the statement if you alter
the schema, fiddle with the text of the statement, or possible change a
global parameter (yikes).


Jeff Holt
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- Hotsos Clinic, Oct 1-3 San Francisco, Oct 15-17 Dallas, Dec 9-11
Honolulu
- 2003 Hotsos Symposium on OracleR System Performance, Feb 9-12 Dallas
- Next event: Miracle Database Forum, Sep 20-22 Middelfart Denmark



-----Original Message-----
VIVEK_SHARMA
Sent: Wed, Aug 28, 2002 10:33
To: Multiple recipients of list ORACLE-L


Which would Perform Better ? 
1) Having an SQL Query Doing a Join between 6 Tables 

2) Running 1 SQL Query on a Single Table , getting the Output Values in
a Cursor 
& passing the Cursor Values as Arguments to the where Clause of a 2nd
SQL Query 
Running on a 2nd  Table & thus so on ... thereby finally getting the
Output from the 6th Table







-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: VIVEK_SHARMA
  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: Jeff Holt
  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).

Reply via email to