if you reuse that set a lot, how about storing it in a table , and doing the join on db side ? if it is large, it sometimes makes sense to create temp table just for single query (I use that sort of stuff for comparing with few M records). But temp tables in that case have to be short lived, as they can't reuse space (no FSM in temporary table world I'm afraid, I hope it will be fixed at some stage tho).
- [PERFORM] Bad performance of SELECT ... where id IN (... Xia Qingran
- Re: [PERFORM] Bad performance of SELECT ... wher... Claus Guttesen
- Re: [PERFORM] Bad performance of SELECT ... wher... Tom Lane
- Re: [PERFORM] Bad performance of SELECT ... ... Xia Qingran
- Re: [PERFORM] Bad performance of SELECT ... Ivan Voras
- Re: [PERFORM] Bad performance of SELECT ... wher... Grzegorz Jaśkiewicz
- Re: [PERFORM] Bad performance of SELECT ... wher... Craig James
- Re: [PERFORM] Bad performance of SELECT ... ... Xia Qingran
- Re: [PERFORM] Bad performance of SELECT ... Omar Kilani
- Re: [PERFORM] Bad performance of SEL... Robert Haas
- Re: [PERFORM] Bad performance o... Omar Kilani
- Re: [PERFORM] Bad performan... Grzegorz Jaśkiewicz
- Re: [PERFORM] Bad performance of SEL... Xia Qingran
- Re: [PERFORM] Bad performance o... Kenneth Marshall