Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOp9P-0000ue-WD for pgsql-jdbc@arkaria.postgresql.org; Sun, 17 Jul 2016 16:42:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bOp9O-0005rH-EC for pgsql-jdbc@arkaria.postgresql.org; Sun, 17 Jul 2016 16:42:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bOp9O-0005rB-5Y for pgsql-jdbc@postgresql.org; Sun, 17 Jul 2016 16:42:42 +0000 Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bOp9F-0007S9-Rq for pgsql-jdbc@postgresql.org; Sun, 17 Jul 2016 16:42:41 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bOp9C-0003QH-8H for pgsql-jdbc@postgresql.org; Sun, 17 Jul 2016 18:42:30 +0200 Received: from ppp-93-104-120-162.dynamic.mnet-online.de ([93.104.120.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jul 2016 18:42:30 +0200 Received: from spam_eater by ppp-93-104-120-162.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jul 2016 18:42:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Slow performance updating CLOB data Date: Sun, 17 Jul 2016 18:42:21 +0200 Lines: 15 Message-ID: References: <47856758BAE4794A9EC4FCA2E63FC85E37059326@exchange.intranet.efsw.it> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-93-104-120-162.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: <47856758BAE4794A9EC4FCA2E63FC85E37059326@exchange.intranet.efsw.it> X-Pg-Spam-Score: -3.9 (---) 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 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