X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9DD448B9F9E for ; Mon, 31 Jan 2005 20:04:35 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50756-03 for ; Mon, 31 Jan 2005 20:04:31 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 594148B9EF1 for ; Mon, 31 Jan 2005 20:03:23 +0000 (GMT) Received: (qmail 4011 invoked by uid 1112); 31 Jan 2005 20:03:22 -0000 Date: Mon, 31 Jan 2005 15:03:22 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: =?ISO-8859-1?Q?St=E9phane_RIFF?= Cc: pgsql-jdbc@postgresql.org Subject: Re: [SPAM] - Re: [SPAM] - Re: JDBC HighLoad - Found word(s) In-Reply-To: <41FE3906.7010008@cerene.fr> Message-ID: References: <41F75206.2030603@cerene.fr> <41FA1D52.4080505@cerene.fr> <41FA31C3.8010502@fastcrypt.com> <41FA39D7.1070008@cerene.fr> <41FE3906.7010008@cerene.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.015 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/300 X-Sequence-Number: 12180 On Mon, 31 Jan 2005, [ISO-8859-1] St=E9phane RIFF wrote: > Ok so how can i make a preparedStatement pool or > allocated my preparedStatements for each connection ??? >=20 Statements are allocated per connection, the problem is that you only have= =20 one variable that tracks only the latest allocated statement. I would=20 suggest splitting your class into two. One, the singleton which creates=20 the pool, and two a class which holds the statements. Then you create a=20 new ClassTwo object for each thread/connection. Kris Jurka