Re: Slow performance updating CLOB data

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Slow performance updating CLOB data
Date: 2016-07-17 16:42:21
Message-ID: nmgchh$8vi$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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.

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Nicola Zanaga 2016-07-18 08:13:59 R: Slow performance updating CLOB data
Previous Message Nicola Zanaga 2016-07-17 09:39:14 Slow performance updating CLOB data