Re: query optimization

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: query optimization
Дата
Msg-id 9895.1215706904@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: query optimization  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-admin
On Thu, Jul 10, 2008 at 3:45 AM, Suresh Borse <s.borse@direction.biz> wrote:
>> The view executes very faster for the first time.
>> When I execute the view again and again suddenly it gets slow or it gets
>> hang.
>> The view contains multi-table joins.

Uh, how many joins?

If you're exceeding geqo_threshold then you would get plans with a
random component to them.  You might want to increase the threshold,
although planning time would probably go up.

Also, what PG version is this?

            regards, tom lane

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: query optimization
Следующее
От: "Mikel Lindsaar"
Дата:
Сообщение: Importing data - possible UTF8 import bug?