Re: performance tuning in large function / transaction
Stephan Szabo <sszabo@megazone23.bigpanda.com>
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: MindTerm <mindterm@yahoo.com>
Cc: <pgsql-sql@postgresql.org>
Date: 2001-12-14T14:44:47Z
Lists: pgsql-sql
On Fri, 14 Dec 2001, MindTerm wrote: > Hi all, > > table : > application : 220 rows ; > usermenu : 6055 rows ; Well, I'd need the other tables involved in the function too, but to start with, try rewriting the queries in the function to use EXISTS rather than IN (see the faq), or bring them into a normal join with the other tables where possible.