Re: Select * is very slow

Поиск
Список
Период
Сортировка
От Pierre C
Тема Re: Select * is very slow
Дата
Msg-id op.vlu7j3h2eorkce@apollo13
обсуждение исходный текст
Ответ на Select * is very slow  ("shaiju.ck" <shaiju.ck@gmail.com>)
Список pgsql-performance
> The table have 200 records now.
> Select * from employee takes 15 seconds to fetch the data!!!
> Which seems to be very slow.
> But when I say select id,name from empoyee it executes in 30ms.

30 ms is also amazingly slow for so few records and so little data.

- please provide results of "EXPLAIN ANALYZE SELECT id FROM table"
- huge bloat (table never vacuumed ?) => VACUUM VERBOSE
- bad network cable, network interface reverting to 10 Mbps, badly
configured network, etc ? (test it and test ping to server, throughput,
etc)
- server overloaded (swapping, etc) ? (vmstat, iostat, top, etc)

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Defaulting wal_sync_method to fdatasync on Linux for 9.1?
Следующее
От: Justin Pitts
Дата:
Сообщение: Re: Select * is very slow