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

Home -> Community -> Usenet -> c.d.o.server -> re: Count(*) takes forever

re: Count(*) takes forever

From: Mark Tompkins <tompkins_at_digital-dispatch.com>
Date: Fri, 05 Feb 1999 08:02:49 -0800
Message-ID: <36BB1629.5AB6D51D@digital-dispatch.com>


Hi,

  1. Put the table into cache. alter table tablename cache;
  2. if you have a single column on the table as the primary key, of type number(x,0), then:

select count(primary_key) from table where primary_key > 0;

Works for me :-)

...later Received on Fri Feb 05 1999 - 10:02:49 CST

Original text of this message

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