[PERFORM] 'Interesting' prepared statement slowdown on large table join

2011-05-11 Thread Prodan, Andrei
Hello everyone, I have the following scenario: There's a web service that updates some information in two tables, every 5 minutes. In order to do this it will issue a select on the tables, get some data, think about it, and then update it if necessary. Sometimes - about once every two

Re: [PERFORM] 'Interesting' prepared statement slowdown on large table join

2011-05-12 Thread Prodan, Andrei
Thank you for all the leads. I've increased stats to 1200 on everything obvious (external_id, attr_name, attr_value, party_id), and ran ANALYZE, but it didn't help at all - any other ideas of what else could be going wrong ? We'll disable preparation, but the thing is it works brilliantly 90% of t