Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Count(*) is very slow
Hallo,
does anybody know, why a
SELECT COUNT(*) FROM ATABLE
Statement is so slow ? On a table with 250.000 rows it takes more then 30
seconds ?!
The table has a primary key and the statistics were computed before
executing this Statement.
It makes no difference using COUNT(PRIMARY_KEY) instead of COUNT(*).
It seems that the server is doing a full-table-scan !
The server is a P200 with 96MB RAM, NT 4.0 SP3 and Oracle 8.0.5.
I've never seen a DBMS, which takes so much time for such a simple query.
Thanks for your help
--
Andreas Kyritz
AKyritz_at_easy-soft-dresden.de
Received on Mon Oct 19 1998 - 07:23:20 CDT