Re: SELECT * FROM table is too slow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
      message can get through to the mailing list cleanly

[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux