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

Поиск
Список
Период
Сортировка
От François Beausoleil
Тема Re: explain analyze reports that my queries are fast but they run very slowly
Дата
Msg-id 1C24B9EF-045C-473F-8C28-485F4CD697AF@teksol.info
обсуждение исходный текст
Ответ на explain analyze reports that my queries are fast but they run very slowly  (Nikolas Everett <nik9000@gmail.com>)
Ответы Re: explain analyze reports that my queries are fast but they run very slowly  (Richard Neill <rn214@richardneill.org>)
Re: explain analyze reports that my queries are fast but they run very slowly  (Nikolas Everett <nik9000@gmail.com>)
Список pgsql-performance
Le 2012-12-27 à 12:10, Nikolas Everett a écrit :

> We just upgraded from 8.3 to 9.1 and we're seeing some performance problems.  When we EXPLAIN ANALYZE our queries the
explainresult claim that the queries are reasonably fast but the wall clock time is way way longer.  Does anyone know
whythis 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
clocktime is like 11 seconds and the \timing report confirms it. 
>
> Any ideas?

Could you post the actual plans? On both versions? That would help a lot.

Also, http://explain.depesz.com/ helps readability.

Bye,
François



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

Предыдущее
От: Nikolas Everett
Дата:
Сообщение: explain analyze reports that my queries are fast but they run very slowly
Следующее
От: Richard Neill
Дата:
Сообщение: Re: explain analyze reports that my queries are fast but they run very slowly