Subject Re: Count(*) on big tables
Author Ali Gökçen
Hi,

Not too much.
50 million rows means millions of data pages pages. so, millions of
disk clusters.
Calculate your avarage access time of disk and multiplay it by
millions of clusters and add transfer time.
dbcache can't help for full scan of big tables, it causes extra time
loss by useless buffering.

Regards.

Ali

--- In firebird-support@yahoogroups.com, "Jerome Bouvattier"
<JBouvattier@I...> wrote:
> Hello,
>
> I know Count(*) requires a full scan and can't return
immedialtely. But
> isn't 8 minutes a bit too much for a 50 millions rows table ?
>
> The first time, I thought it was due to GC, but subsequent calls
took as
> long.
>
> Any hint ?
>
> Thanks.
>
> --
> Jerome