From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Slow performance updating CLOB data
Date: Sun, 17 Jul 2016 18:42:21 +0200
Message-ID: <nmgchh$8vi$1@ger.gmane.org> (raw)
In-Reply-To: <47856758BAE4794A9EC4FCA2E63FC85E37059326@exchange.intranet.efsw.it>
References: <47856758BAE4794A9EC4FCA2E63FC85E37059326@exchange.intranet.efsw.it>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Nicola Zanaga schrieb am 17.07.2016 um 11:39:
> Hi, using ResultSet.updateCharacterStream to update a CLOB is very slow.
>
> Most of the time is spent in method PgResultSet.isUpdateable because the table has a primary key but doesn't have a "oid" column.
>
> So the code tries to get primary keys from the query, using getMetaData().getPrimaryKeys.
> This is a very slow process.
>
> There is any workaround ?
Are you using setCharacterStream()? Why aren't you using setString()?
Please show us the Java code.
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: spam_eater@gmx.net
Subject: Re: Slow performance updating CLOB data
In-Reply-To: <nmgchh$8vi$1@ger.gmane.org>
References: <47856758BAE4794A9EC4FCA2E63FC85E37059326@exchange.intranet.efsw.it> <nmgchh$8vi$1@ger.gmane.org>
* 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