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>
Re: Query runs too long for indexed tables PFC <lists@peufeu.com>
"Andrus"  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
Дата:
От: Juan Casero \(FL FLC\)
Дата:
FAQ