Re: please help with the explain analyze plan

Поиск
Список
Период
Сортировка
От Rajesh Kumar Mallah
Тема Re: please help with the explain analyze plan
Дата
Msg-id a97c77030902110437h7916ce14m4e84a329cc0d28b2@mail.gmail.com
обсуждение исходный текст
Ответ на Re: please help with the explain analyze plan  (Glyn Astill <glynastill@yahoo.co.uk>)
Ответы Re: please help with the explain analyze plan
Список pgsql-performance
thanks for the hint,

now the peak hour is over and the same scan is taking 71 ms in place of 80000 ms
and the total query time is also acceptable. But it is surprising that
the scan was
taking so long consistently at that point of time. I shall test again
under similar
circumstance tomorrow.

Is it possible to enable block level statistics from the psql prompt
for a particular query
and see the results on the psql prompt ?

explain  analyze SELECT count(*) from
rfi_partitions.rfis_part_2006_02 where  generated_date >= 2251 and
receiver_uid=1320721 ;

  QUERY PLAN

------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=6.44..6.45 rows=1 width=0) (actual
time=71.513..71.513 rows=1 loops=1)
   ->  Index Scan using rfis_part_2006_02_generated_date on
rfis_part_2006_02  (cost=0.00..6.43 rows=1 width=0) (actual
time=71.508..71.508 rows=0 loops=1)
         Index Cond: (generated_date >= 2251)
         Filter: (receiver_uid = 1320721)
 Total runtime: 71.553 ms
(5 rows)

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

Предыдущее
От: Glyn Astill
Дата:
Сообщение: Re: please help with the explain analyze plan
Следующее
От: Rajesh Kumar Mallah
Дата:
Сообщение: Re: please help with the explain analyze plan