Cursor fetch performance issue

Поиск
Список
Период
Сортировка
От Tony Capobianco
Тема Cursor fetch performance issue
Дата
Msg-id 1327437700.1968.10.camel@tony1.localdomain
обсуждение исходный текст
Ответы Re: Cursor fetch performance issue  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-performance
We are migrating our Oracle warehouse to Postgres 9.

This function responds well:

pg=# select public.getMemberAdminPrevious_sp2(247815829, 1,'test.email@hotmail.com', 'email', 'test');
 getmemberadminprevious_sp2
----------------------------
 <unnamed portal 1>
(1 row)

Time: 7.549 ms

However, when testing, this fetch takes upwards of 38 minutes:

BEGIN;
select public.getMemberAdminPrevious_sp2(247815829, 1,'test.email@hotmail.com', 'email', 'test');
FETCH ALL IN "<unnamed portal 2>";

How can I diagnose any performance issues with the fetch in the cursor?

Thanks.
Tony


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

Предыдущее
От: Dave Crooke
Дата:
Сообщение: Can lots of small writes badly hamper reads from other tables?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Cursor fetch performance issue