From: | "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Postgresql.conf |
Date: | 2007-01-23 15:33:19 |
Message-ID: | 20070123153318.GH24927@a-kretschmer.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
am Tue, dem 23.01.2007, um 10:12:13 -0500 mailte Brandon Aiken folgendes:
> Out of curiosity, has the COUNT(*) with no WHERE clause slowness been
> fixed in 8.x? Or is it still an issue of "there's no solution that
> won't harm aggregates with WHERE clauses"?
I will try it:
scholl=# \timing
Timing is on.
scholl=# select count(1) from bde_meldungen ;
count
---------
1813210
(1 row)
Time: 1925.471 ms
scholl=*# select count(1) from bde_meldungen where datum = current_date-'1day'::interval;
count
-------
2694
(1 row)
Time: 5.670 ms
Btw: yes, the table has more rows than the table from the origin poster
and the count(1) is much faster. Perhaps he should show us an 'explain
analyse'. My guess: many dead tuples.
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2007-01-23 15:35:02 | Re: Installing PostgreSQL under Cpanel |
Previous Message | Tom Lane | 2007-01-23 15:32:45 | Re: Installing PostgreSQL under Cpanel |