Re: SELECT * FROM table is too slow

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: SELECT * FROM table is too slow
Дата
Msg-id 47657068.5070200@commandprompt.com
обсуждение исходный текст
Ответ на SELECT * FROM table is too slow  (Adam PAPAI <wooh@wooh.hu>)
Ответы Re: SELECT * FROM table is too slow
Список 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



В списке pgsql-performance по дате отправления:

Предыдущее
От: Adam PAPAI
Дата:
Сообщение: SELECT * FROM table is too slow
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: update 600000 rows