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

Home -> Community -> Mailing Lists -> Oracle-L -> SQL statement performance

SQL statement performance

From: Guang Mei <zlmei_at_hotmail.com>
Date: Mon, 14 May 2001 15:24:37 -0700
Message-ID: <F001.0030313F.20010514152022@fatcity.com>

Oracle : 8.0.5
Platform : Sun

SQL statement:

select distinct(spid) spid, name, commonname from (

    select distinct queryspid spid from results union     select distinct subjspid spid from results    ) a, species
   where a.spid=species.id ;

Table "Species" only has 33 records, while table "results" has about 8000000 records. There are indexes on queryspid and subjspid.

This query is somehow slow. Is there any "easy" way to speed it up?

Thanks.



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

--

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

Author: Guang Mei
  INET: zlmei_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 Mon May 14 2001 - 17:24:37 CDT

Original text of this message

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