Re: Need Some Explanation of an EXPLAIN

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Need Some Explanation of an EXPLAIN
Дата
Msg-id 27774.1222464300@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Need Some Explanation of an EXPLAIN  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-general
"Scott Marlowe" <scott.marlowe@gmail.com> writes:
> On Fri, Sep 26, 2008 at 12:13 PM, Bill Thoen <bthoen@gisnet.com> wrote:
>> 2.) How can I make this update faster?

> Get a faster server?

Increasing work_mem might help.  If the hashtable size estimate is
right, you'd need something like 100MB to be sure that the join gets
done in only one batch.

Also, if a lot of the rows needn't actually change, it'd be worthwhile
to add a WHERE clause:

 UPDATE growers
 SET grower_id = id2.grower_id
 FROM id2 WHERE growers.fsa_id = id2.fsa_id
      AND growers.grower_id != id2.grower_id

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Is there any way to reliably influence WHERE predicate evaluation ordering?
Следующее
От: Decibel!
Дата:
Сообщение: Re: Is there any way to reliably influence WHERE predicate evaluation ordering?