Re: how could select id=xx so slow?

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: how could select id=xx so slow?
Дата
Msg-id 4FFE751D.3050105@ringerc.id.au
обсуждение исходный текст
Ответ на Re: how could select id=xx so slow?  (Yan Chunlu <springrider@gmail.com>)
Ответы Re: how could select id=xx so slow?
Список pgsql-performance
On 07/12/2012 01:10 PM, Yan Chunlu wrote:
after check out the wiki page Maciek mentioned, turns out that heavy connection also burden the disk hardly.
looks like I am in the vicious circle:
1, slow query cause connection blocked so the client request more connection. 
2, more connection cause high disk io and make even the simplest query slow and block.

While true, you can often control this by making sure you don't completely overload your hardware, queuing queries instead of running them all at once.

You may still discover that your hardware can't cope with the workload in that your queues may just keep on getting deeper or time out. In that case, you certainly need to optimise your queries, tune your database, and/or get bigger hardware.

--
Craig Ringer

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

Предыдущее
От: Daniel Farina
Дата:
Сообщение: Re: DELETE vs TRUNCATE explanation
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: DELETE vs TRUNCATE explanation