Re: Simple indexed IN query takes 40 seconds

Поиск
Список
Период
Сортировка
От Andrus
Тема Re: Simple indexed IN query takes 40 seconds
Дата
Msg-id FA5481C37B434A5A8514435353F23019@andrusnotebook
обсуждение исходный текст
Ответ на Re: Simple indexed IN query takes 40 seconds  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Tom,

> Using something newer than 8.1 would help.

Thank you.

If

CREATE TEMP TABLE  ids ( id int ) ON COMMIT DROP;

is created, ids are added to this table and
ids table is used in inner join insted of IN clause or

IN clause is replaced with

... dokumnr IN ( SELECT id FROM ids )  ...

, will this fix the issue in 8.1.4 ?

Andrus.

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Oddity with view
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Oddity with view