explain analyze reports that my queries are fast but they run very slowly

Поиск
Список
Период
Сортировка
От Nikolas Everett
Тема explain analyze reports that my queries are fast but they run very slowly
Дата
Msg-id CAPmjWd2XgV9d3zy3zc8L9PJRdoVM720g2zSQWsDKZsJkOqKMjw@mail.gmail.com
обсуждение исходный текст
Ответы Re: explain analyze reports that my queries are fast but they run very slowly  (François Beausoleil <francois@teksol.info>)
Re: explain analyze reports that my queries are fast but they run very slowly  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
We just upgraded from 8.3 to 9.1 and we're seeing some performance problems.  When we EXPLAIN ANALYZE our queries the explain result claim that the queries are reasonably fast but the wall clock time is way way longer.  Does anyone know why this might happen?

Like so:
db=>\timing
db=>EXPLAIN ANALYZE SELECT max(id) FROM foo WHERE blah_id = 1209123;

The plan is sensible.  The estimates are sensible.  The actual DB time reads like it is very sensible.  But the wall clock time is like 11 seconds and the \timing report confirms it.

Any ideas?

Thanks!

Nik

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Why does the query planner use two full indexes, when a dedicated partial index exists?
Следующее
От: François Beausoleil
Дата:
Сообщение: Re: explain analyze reports that my queries are fast but they run very slowly