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: Raghu Kota <raghukota_at_hotmail.com>
Date: Wed, 26 Sep 2001 11:49:59 -0700
Message-ID: <F001.00399BCA.20010926115535@fatcity.com>

Hi Kevin

Thanks for quick reply..Its normally taking 2-4min to show whole data, my cc has 18179 rows, and cf has 51513 rows..Here is explain

18179 rows selected.

Execution Plan


   0      SELECT STATEMENT Optimizer=CHOOSE (Cost=1866 Card=46885 Byte
          s=3188180)

   1    0   SORT (UNIQUE) (Cost=1866 Card=46885 Bytes=3188180)
   2    1     NESTED LOOPS (Cost=36 Card=46885 Bytes=3188180)
   3    2       TABLE ACCESS (FULL) OF 'CUSTOMER_FINANCE' (Cost=36 Car
          d=50409 Bytes=2217996)

   4    2       INDEX (UNIQUE SCAN) OF 'PK_CUSTOMER_CODE' (UNIQUE)




>From: kevinedba_at_netscape.net (kevin edwards)
>To: raghukota_at_hotmail.com ("Raghu Kota"), oracledba_at_lazydba.com
>("LazyDBA.com Discussion")
>Subject: RE: Optimizing the query to increase performance??
>Date: Wed, 26 Sep 2001 14:21:40 -0400
>
>withoust seeing an explain plan this is just a guess
>
>SELECT 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.BILL_CUST_NO BETWEEN 10000 AND 999999
>AND (CF.EFF_START_DATE <= to_date('16-SEP-2001 00:00:00','dd-mon-yyyy
>hh24:mi:ss') AND
>CF.EFF_STOP_DATE >= to_date('16-SEP-2001 23:50:00','dd-mon-yyyy
>hh24:mi:ss') )
>group by CC.CUST_NO, CF.DISBURSE_CUST_NO
>"Raghu Kota" <raghukota_at_hotmail.com> wrote:
>
> >
> >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
> >
> >
> >--------
> >Oracle documentation is here:
>http://tahiti.oracle.com/pls/tahiti/tahiti.homepage
> >To unsubscribe: send a blank email to oracledba-unsubscribe_at_LAZYDBA.com
> >To subscribe: send a blank email to oracledba-subscribe_at_LAZYDBA.com
> >Visit the list archive: http://www.LAZYDBA.com/odbareadmail.pl
> >Tell yer mates about http://www.farAwayJobs.com
> >By using this list you agree to these
>terms:http://www.lazydba.com/legal.html
> >
> >
>--
>Sr. DBA
>
>
>
>__________________________________________________________________
>Your favorite stores, helpful shopping tools and great gift ideas.
>Experience the convenience of buying online with Shop_at_Netscape!
>http://shopnow.netscape.com/
>
>Get your own FREE, personal Netscape Mail account today at
>http://webmail.netscape.com/
>


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).
Received on Wed Sep 26 2001 - 13:49:59 CDT

Original text of this message

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