X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id 0E22BCCCE9 for ; Fri, 18 Jul 2003 15:49:06 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 40728-02 for ; Fri, 18 Jul 2003 15:49:28 +0000 (GMT) Received: from webmail.muc.domues.com (webmail.muc.domeus.com [62.67.54.176]) by svr1.postgresql.org (Postfix) with ESMTP id 028C6CC00C for ; Fri, 18 Jul 2003 12:48:53 -0300 (ADT) Received: from coppola.ecircle.de ([192.168.1.142]) by webmail.muc.domues.com (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id h6IFnKk07392; Fri, 18 Jul 2003 17:49:20 +0200 Subject: Re: Prepared Statements From: Csaba Nagy To: Dmitry Tkach Cc: Fernando Nasser , Barry Lind , wsheldah@lexmark.com, "pgsql-jdbc @ postgresql " ". org" In-Reply-To: <3F181511.70609@openratings.com> References: <3F174BFF.3070704@xythos.com> <3F1801C5.9030104@openratings.com> <3F18065A.1060406@redhat.com> <3F180FB2.3090408@openratings.com> <3F181054.5080707@redhat.com> <3F181511.70609@openratings.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-11) Date: 18 Jul 2003 17:49:20 +0200 Message-Id: <1058543361.25132.314.camel@coppola.ecircle.de> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/134 X-Sequence-Number: 7518 That's a hack indeed, but there's no finger crossing :-) We do chunk our queries if needed, i.e. execute them multiple times if the parameter set is too big. We mostly use this technique to filter a set according to some criteria. Now if the set is too big, we do the filtering chunk-wise, and then cumulate the result. I admit that it won't work for all situations, but then if you have a big set, you might be looking for a different solution like dumping them in to a temporary table. Cheers, Csaba. > Some people are used to hacks, like one described in an earlier post - > where yuo create a statement with an awful lot of questionmarks, and > then set each member of the set separately and cross your fingers, > hoping that you have enough placeholders for your whole set... > > Dima > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings >