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:Optimizing the query to increase performance??

Re:Optimizing the query to increase performance??

From: <dgoulet_at_vicr.com>
Date: Wed, 26 Sep 2001 11:24:53 -0700
Message-ID: <F001.00399B43.20010926113505@fatcity.com>

Raghu,

    I assuming your running with rule based optimization, therefore I'll ask why your using the driving table in an outer join? Especially when you can't handle a missing record therein (CF.EFF_START_DATE and CF.EFF_STOP_DATE). Outer joins almost always require a full table scan.

Dick Goulet

____________________Reply Separator____________________
Author: "Raghu Kota" <raghukota_at_hotmail.com>
Date:       9/26/2001 11:05 AM


Hi Friends,

I had a query running longer time!!, what is best way to optimize this query?? Or can I break this query for 5000 records each..Any ideas and suggestions??

SELECT DISTINCT CC.CUST_NO, CF.DISBURSE_CUST_NO FROM CUSTOMER_CODE CC, CUSTOMER_FINANCE CF WHERE CC.CUST_NO = CF.BILL_CUST_NO(+) AND CC.CUST_NO BETWEEN 10000 AND 999999 AND (CF.EFF_START_DATE <= '16-SEP-2001' AND CF.EFF_STOP_DATE >= '16-SEP-2001') Thanks
Raghu.



Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Raghu Kota
  INET: raghukota_at_hotmail.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 Sep 26 2001 - 13:24:53 CDT

Original text of this message

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