From: Kris Jurka <books@ejurka.com>
To: Steven Schlansker <stevenschlansker@gmail.com>
Cc: Till Toenges <tt@kyon.de>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Patch to fix bug #6293 - regression in driver performance with regards to ResultSetMetaData-heavy workloads
Date: Fri, 10 Feb 2012 04:09:11 -0500 (EST)
Message-ID: <alpine.BSO.2.00.1202100407320.8161@leary.csoft.net> (raw)
In-Reply-To: <C3F26A4E-6AF5-42A5-BDA3-06D5DDA3BAA0@gmail.com>
References: <5CBAD10C-C4DB-4AE3-ADB4-8197E0AA4146@likeness.com>
<CADK3HHJgR_sDBTvmAmkyEM9RxE9x2QGA1Ukb+mnsooZQd+NULQ@mail.gmail.com>
<20279E38-EDB7-4D2B-8DD1-A1CF5F3E9F1D@likeness.com>
<4F34ADA6.4050008@kyon.de>
<C3F26A4E-6AF5-42A5-BDA3-06D5DDA3BAA0@gmail.com>
On Thu, 9 Feb 2012, Steven Schlansker wrote:
> So IMO whether getMetaData() is thread safe or not is irrelevant, as
> nothing else in the class is. Making the entire class thread safe would
> probably not be worth the effort (sharing a ResultSet between threads
> just sounds like a bad idea, and the increased synchronization overhead
> would punish everyone who does it "right")
I concur that thread safety is not an issue here. I have committed a
variant of your fix that moves the caching into AbstractJdbc2ResultSet
instead of having each concrete implementation class have its own copy of
that code.
Kris Jurka
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, stevenschlansker@gmail.com, tt@kyon.de, pg@fastcrypt.com
Subject: Re: Patch to fix bug #6293 - regression in driver performance with regards to ResultSetMetaData-heavy workloads
In-Reply-To: <alpine.BSO.2.00.1202100407320.8161@leary.csoft.net>
References: <5CBAD10C-C4DB-4AE3-ADB4-8197E0AA4146@likeness.com> <CADK3HHJgR_sDBTvmAmkyEM9RxE9x2QGA1Ukb+mnsooZQd+NULQ@mail.gmail.com> <20279E38-EDB7-4D2B-8DD1-A1CF5F3E9F1D@likeness.com> <4F34ADA6.4050008@kyon.de> <C3F26A4E-6AF5-42A5-BDA3-06D5DDA3BAA0@gmail.com> <alpine.BSO.2.00.1202100407320.8161@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