Skip site navigation (1) Skip section navigation (2)

count(*) performance

From: Gábriel Ákos <akos(dot)gabriel(at)i-logic(dot)hu>
To: pgsql-performance(at)postgresql(dot)org
Subject: count(*) performance
Date: 2006-03-27 13:34:32
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance

I guess this is an age-old 100times answered question, but I didn't find 
the answer to it yet (neither in the FAQ nor in the mailing list archives).

Question: I have a table with 2.5M rows. count(*) on this table is 
running 4 minutes long. (dual opteron, 4gig ram, db on 4 disk raid10 
array (sata, not scsi)) Is this normal? How could I make it run faster?
Maybe make it run faster for the 2nd time? Which parameters should I 
change in postgresql.conf and how?

Gábriel Ákos
-=E-Mail :akos(dot)gabriel(at)i-logic(dot)hu|Web:
-=Tel/fax:+3612367353            |Mobil:+36209278894            =-


pgsql-performance by date

Next:From: Jim C. NasbyDate: 2006-03-27 13:41:04
Subject: Re: count(*) performance
Previous:From: Jim C. NasbyDate: 2006-03-27 12:14:07
Subject: Re: experiences needed - how does Itanium2/1.5GHz(4MB) compare to AMD and Intel CPUs as far as Postgresql is concerned

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group