Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bP8BC-0002nz-75 for pgsql-jdbc@arkaria.postgresql.org; Mon, 18 Jul 2016 13:01:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bP8BB-0001bZ-Mn for pgsql-jdbc@arkaria.postgresql.org; Mon, 18 Jul 2016 13:01:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bP8Ah-00014R-C9 for pgsql-jdbc@postgresql.org; Mon, 18 Jul 2016 13:01:19 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bP8AZ-0003sp-53 for pgsql-jdbc@postgresql.org; Mon, 18 Jul 2016 13:01:18 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bP8AT-0008En-1I for pgsql-jdbc@postgresql.org; Mon, 18 Jul 2016 15:01:05 +0200 Received: from 185.40.248.10 ([185.40.248.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jul 2016 15:01:05 +0200 Received: from spam_eater by 185.40.248.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jul 2016 15:01:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Slow performance updating CLOB data Date: Mon, 18 Jul 2016 15:01:00 +0200 Lines: 12 Message-ID: References: <47856758BAE4794A9EC4FCA2E63FC85E37059326@exchange.intranet.efsw.it> <47856758BAE4794A9EC4FCA2E63FC85E370593D0@exchange.intranet.efsw.it> <20160718085349.5914705.33027.20620@gmail.com> <47856758BAE4794A9EC4FCA2E63FC85E3705944D@exchange.intranet.efsw.it> <47856758BAE4794A9EC4FCA2E63FC85E370594BC@exchange.intranet.efsw.it> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 185.40.248.10 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: <47856758BAE4794A9EC4FCA2E63FC85E370594BC@exchange.intranet.efsw.it> X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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