Re: Query runs too long for indexed tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query runs too long for indexed tables
Дата
Msg-id 27543.1144246195@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Query runs too long for indexed tables  ("Andrus" <eetasoft@online.ee>)
Список pgsql-performance
"Andrus" <eetasoft@online.ee> writes:
> UPDATE firma1.rid SET toode=NULL
>         WHERE toode IS NOT NULL AND
>         toode NOT IN (SELECT TOODE      FROM firma1.TOODE);

> How to speed this up ?

Increasing work_mem to the point where you get a hashed NOT-IN would
help, probably.  Have you tried using EXPLAIN to see what the plan is
for the UPDATEs?

            regards, tom lane

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

Предыдущее
От: PFC
Дата:
Сообщение: Re: Query runs too long for indexed tables
Следующее
От: "Juan Casero \(FL FLC\)"
Дата:
Сообщение: Sun Fire T2000 and PostgreSQL 8.1.3