pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heiko W.Rupp <heiko.rupp@redhat.com>
To: pgsql-performance@postgresql.org
Subject: Re: slow result
Date: Tue, 23 Jan 2007 11:43:16 +0100
Message-ID: <08E18820-41DF-4170-A39E-B5DFAAF1C690@redhat.com> (raw)
In-Reply-To: <5.0.2.1.2.20070123113422.00d189e8@pop.univ-montp2.fr>
References: <5.0.2.1.2.20070123113422.00d189e8@pop.univ-montp2.fr>


Am 23.01.2007 um 11:34 schrieb Laurent Manchon:

> Hi,
>
> I have a slow response of my PostgreSQL database 7.4 using this  
> query below
> on a table with 800000 rows:
>
> select count(*)from tbl;

count(*) is doing a full tablescan over all your 800000 rows. This is  
a well known "feature"
of postgres :-/

So enhancing the performance is currently only possible by having  
faster disk drives.
-- 
Heiko W.Rupp
                    heiko.rupp@redhat.com, http://www.dpunkt.de/buch/ 
3-89864-429-4.html






view thread (12+ messages)  latest in thread

Message-ID: <08E18820-41DF-4170-A39E-B5DFAAF1C690@redhat.com>
Permalink:  ../08E18820-41DF-4170-A39E-B5DFAAF1C690@redhat.com/
Also on:    postgresql.org/message-id/08E18820-41DF-4170-A39E-B5DFAAF1C690@redhat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: heiko.rupp@redhat.com
  Subject: Re: slow result
  In-Reply-To: <08E18820-41DF-4170-A39E-B5DFAAF1C690@redhat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox