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(*)

Re: count(*)

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Mon, 8 Apr 2002 09:23:24 +0100
Message-ID: <1018254143.27750.0.nnrp-12.9e984b29@news.demon.co.uk>

The optimisation paths available.
The number of blocks involved
The method used to read the blocks
The amount of block cleanout that takes place on the read The amount of concurrent activity on the disks at the same time

--
Jonathan Lewis
http://www.jlcomp.demon.co.uk

Host to The Co-Operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

Author of:
Practical Oracle 8i: Building Efficient Databases


Morten Primdahl wrote in message <3CB14F73.4000106_at_caput.com>...

>
>Hi. What affects the execution speed of count(*):
>
>SQL> select count(*) from table_a;
>
> COUNT(*)
>----------
> 382784
>
>Elapsed: 00:00:00.28
>SQL> select count(*) from table_b;
>
> COUNT(*)
>----------
> 382648
>
>Elapsed: 00:00:05.40
>
>The tables have a similar amount of rows, yet the count
>on table_b is noticably slower than the count on table_a.
>
>--
>Morten Primdahl Caput A/S Phone +45 70 12 24 42
>System Integrator Nygade 6 Fax +45 70 11 24 42
>morten@caput.com DK-1164 Kbh K http://www.caput.com/
>
Received on Mon Apr 08 2002 - 03:23:24 CDT

Original text of this message

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