Re: Simple indexed IN query takes 40 seconds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux