pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Stéphane RIFF <stephane.riff@cerene.fr>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [SPAM] - Re: [SPAM] - Re: JDBC HighLoad - Found word(s)
Date: Mon, 31 Jan 2005 15:03:22 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0501311501240.6638@leary.csoft.net> (raw)
In-Reply-To: <41FE3906.7010008@cerene.fr>
References: <41F75206.2030603@cerene.fr>
	<41FA1D52.4080505@cerene.fr>
	<41FA31C3.8010502@fastcrypt.com>
	<41FA39D7.1070008@cerene.fr>
	<Pine.BSO.4.56.0501281837510.24668@leary.csoft.net>
	<41FE3906.7010008@cerene.fr>



On Mon, 31 Jan 2005, [ISO-8859-1] Stéphane RIFF wrote:

> Ok so how can i make a preparedStatement pool or
> allocated my preparedStatements for each connection ???
> 

Statements are allocated per connection, the problem is that you only have 
one variable that tracks only the latest allocated statement.  I would 
suggest splitting your class into two.  One, the singleton which creates 
the pool, and two a class which holds the statements.  Then you create a 
new ClassTwo object for each thread/connection.

Kris Jurka




view thread (13+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0501311501240.6638@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0501311501240.6638@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0501311501240.6638@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, stephane.riff@cerene.fr
  Subject: Re: [SPAM] - Re: [SPAM] - Re: JDBC HighLoad - Found word(s)
  In-Reply-To: <Pine.BSO.4.56.0501311501240.6638@leary.csoft.net>
  References: <41F75206.2030603@cerene.fr> <41FA1D52.4080505@cerene.fr> <41FA31C3.8010502@fastcrypt.com> <41FA39D7.1070008@cerene.fr> <Pine.BSO.4.56.0501281837510.24668@leary.csoft.net> <41FE3906.7010008@cerene.fr> <Pine.BSO.4.56.0501311501240.6638@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox