Re: how could select id=xx so slow?

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: how could select id=xx so slow?
Дата
Msg-id 4FF6C90B.8070402@ringerc.id.au
обсуждение исходный текст
Ответ на how could select id=xx so slow?  (Yan Chunlu <springrider@gmail.com>)
Список pgsql-performance
On 07/06/2012 02:17 PM, Yan Chunlu wrote:

> so I wonder could this simple select is innocent and affected badly by
> other queries? how could I find those queries that really slow down
> the database?

It might not be other queries. Your query could be taking that long
because it was blocked by a lock during maintenance work (say, an ALTER
TABLE). It's also quite possible that it was held up by a slow
checkpoint; check your logs to see if there are warnings about
checkpoint activity.

--
Craig Ringer

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

Предыдущее
От: Daniel Farina
Дата:
Сообщение: Re: how could select id=xx so slow?
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: PostgreSQL db, 30 tables with number of rows < 100 (not huge) - the fastest way to clean each non-empty table and reset unique identifier column of empty ones.