pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Slow performance updating CLOB data
Date: Mon, 18 Jul 2016 15:01:00 +0200
Message-ID: <nmijuc$vln$1@ger.gmane.org> (raw)
In-Reply-To: <47856758BAE4794A9EC4FCA2E63FC85E370594BC@exchange.intranet.efsw.it>
References: <47856758BAE4794A9EC4FCA2E63FC85E37059326@exchange.intranet.efsw.it>
	<47856758BAE4794A9EC4FCA2E63FC85E370593D0@exchange.intranet.efsw.it>
	<nmi4rk$ki0$1@ger.gmane.org>
	<20160718085349.5914705.33027.20620@gmail.com>
	<47856758BAE4794A9EC4FCA2E63FC85E3705944D@exchange.intranet.efsw.it>
	<CADK3HH+_S4MFsn0tb3-5fTJCjbqbuK18nmRB2F4Kt6BRw=ycFQ@mail.gmail.com>
	<CAB=Je-EGvjnG1YjoMpxk6OF1vE2CEQjsPp1UXHq2sM=r=wrkJg@mail.gmail.com>
	<47856758BAE4794A9EC4FCA2E63FC85E370594BC@exchange.intranet.efsw.it>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Nicola Zanaga schrieb am 18.07.2016 um 14:28:
> 
> I can change strategy for postgres, but I don’t think is good to issue a query 
> like “UPDATE table SET clob = ‘value’ WHERE key = x” if value is more than 10Mb.
> 
You should use a PreparedStatement not string literals. 
But apart from that, that won't be any different to the SQL that the driver uses.

Why do you think that would be a problem? 
The client needs to send 10MB of data, regardless on _how_ it sends that. 

Thomas



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (10+ messages)  latest in thread

Message-ID: <nmijuc$vln$1@ger.gmane.org>
Permalink:  ../nmijuc$vln$1@ger.gmane.org/
Also on:    postgresql.org/message-id/nmijuc$vln$1@ger.gmane.org

 · 

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: spam_eater@gmx.net
  Subject: Re: Slow performance updating CLOB data
  In-Reply-To: <nmijuc$vln$1@ger.gmane.org>
  References: <47856758BAE4794A9EC4FCA2E63FC85E37059326@exchange.intranet.efsw.it> <47856758BAE4794A9EC4FCA2E63FC85E370593D0@exchange.intranet.efsw.it> <nmi4rk$ki0$1@ger.gmane.org> <20160718085349.5914705.33027.20620@gmail.com> <47856758BAE4794A9EC4FCA2E63FC85E3705944D@exchange.intranet.efsw.it> <CADK3HH+_S4MFsn0tb3-5fTJCjbqbuK18nmRB2F4Kt6BRw=ycFQ@mail.gmail.com> <CAB=Je-EGvjnG1YjoMpxk6OF1vE2CEQjsPp1UXHq2sM=r=wrkJg@mail.gmail.com> <47856758BAE4794A9EC4FCA2E63FC85E370594BC@exchange.intranet.efsw.it> <nmijuc$vln$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