Re: SELECT * FROM table is too slow

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Adam PAPAI <wooh(at)wooh(dot)hu>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: SELECT * FROM table is too slow
Date: 2007-12-16 18:37:28
Message-ID: 47657068.5070200@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Adam PAPAI wrote:
> Hi pgsql-performance,
>
> I've a problem with the select * on a small table.
>
> See below:
>
>
> x7=# SELECT count(idn) from megjelenesek;
> count
> -------
> 162
> (1 row)
>
> Why does it take cca 18-20 sec to get the results?
> Too many indexes?

You likely have a huge amount of dead rows. Try dumping and restoring
the table and remember to run vacuum (or autovacuum) often.

Sincerely,

Joshua D. Drake

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Merlin Moncure 2007-12-16 18:52:00 Re: update 600000 rows
Previous Message Adam PAPAI 2007-12-16 18:34:45 SELECT * FROM table is too slow