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: Dead slow count(*)

RE: Dead slow count(*)

From: Robson, Peter <pgro_at_bgs.ac.uk>
Date: Tue, 10 Feb 2004 10:36:26 -0000
Message-ID: <BF81CBFBEFD304489D53FFD44BCAB707238DF2@mhnts2.nerc-murchison.ac.uk>

Are you, by any chance, missing a primary key on this table?

peter
edinburgh

>
> >From: Jordi Adame V <jordi_at_inffinix.com>
> >Reply-To: oracle-l_at_freelists.org
> >To: Oracle-L_at_freelists.org
> >Subject: Dead slow count(*)
> >Date: Thu, 29 Jan 2004 17:54:46 -0600
> >
> >Hi!
> >
> >I have this table with ~4,000,000 entries
> >
> >When i do a SELECT COUNT(*) FROM TABLE_NAME
> >
> >it takes 4 hours to give me the result, this is way too much
> >
> >Im running Oracle 9.2.0.4.0 on RedHat AS 3
> >
> >These are my first experiences with Oracle, so I have no
> clue how to fix
> >this
> >query time... Any help would be nice
> >
> >regards
> >
> >Jordi
> >
> >----------------------------------------------------------------
> >Please see the official ORACLE-L FAQ: http://www.orafaq.com
> >----------------------------------------------------------------
> >To unsubscribe send email to: oracle-l-request_at_freelists.org
> >put 'unsubscribe' in the subject line.
> >--
> >Archives are at http://www.freelists.org/archives/oracle-l/
> >FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> >-----------------------------------------------------------------
>
> _________________________________________________________________
> Check out the great features of the new MSN 9 Dial-up, with
> the MSN Dial-up
> Accelerator. http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/
>
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to: oracle-l-request_at_freelists.org
> put 'unsubscribe' in the subject line.
> --
> Archives are at http://www.freelists.org/archives/oracle-l/
> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------
>



This e-mail message, and any files transmitted with it, are confidential and intended solely for the use of the addressee. If this message was not addressed to you, you have received it in error and any copying, distribution or other use of any part of it is strictly prohibited. Any views or opinions presented are solely those of the sender and do not necessarily represent those of the British Geological Survey. The security of e-mail communication cannot be guaranteed and the BGS accepts no liability for claims arising as a result of the use of this medium to transmit messages from or to the
BGS. .                            http://www.bgs.ac.uk
*********************************************************************

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

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Tue Feb 10 2004 - 04:36:26 CST

Original text of this message

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