Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Dead slow count(*)
Check the high water mark of this table. May be there are lot of empty
blocks
due to which count(*) is taking time.
-----Original Message-----
From: Jordi Adame V [mailto:jordi_at_inffinix.com]
Sent: Thursday, January 29, 2004 6:55 PM
To: Oracle-L_at_freelists.org
Subject: Dead slow count(*)
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
![]() |
![]() |