Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 76299 invoked from network); 19 Mar 2007 21:39:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2007 21:39:56 -0000 Received: (qmail 42644 invoked by uid 500); 19 Mar 2007 21:40:04 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 42428 invoked by uid 500); 19 Mar 2007 21:40:02 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 42378 invoked by uid 99); 19 Mar 2007 21:40:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2007 14:40:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2007 14:39:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2908F714058 for ; Mon, 19 Mar 2007 14:39:32 -0700 (PDT) Message-ID: <5324446.1174340372156.JavaMail.jira@brutus> Date: Mon, 19 Mar 2007 14:39:32 -0700 (PDT) From: "Suresh Thalamati (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2465) Clob data type should use getCharacterStream() to read a column data from a VTI instead of getString(). In-Reply-To: <27349402.1174325372142.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Suresh Thalamati updated DERBY-2465: ------------------------------------ Attachment: derby.log derby2465_v1.diff Following the similar code in the SQLBlob data type, I made small changes to SQLClob.java as in the attached patch to make clob datatype read using getCharacterStream(). When I ran the tests, lang/TriggerTest Failied with following error: 1) testTypesInActionStatement(org.apache.derbyTesting.functionTests.tests.lang.T riggerTest)ERROR XSDA7: Restore of a serializable or SQLData object of class , a ttempted to read more data than was originally stored I wonder if I am doing something stupid or just hit a bug ? > Clob data type should use getCharacterStream() to read a column data from a VTI instead of getString(). > --------------------------------------------------------------------------------------------------------- > > Key: DERBY-2465 > URL: https://issues.apache.org/jira/browse/DERBY-2465 > Project: Derby > Issue Type: Improvement > Affects Versions: 10.3.0.0 > Reporter: Suresh Thalamati > Attachments: derby.log, derby2465_v1.diff > > > Currently clob data is read as String. This can consume lot of memory when lot > of rows read from a VTI resultset. I think it would consume less memory if > data is read using streams. > org.apache.derby.iapi.types.SQLClob.java does not implement > setValueFromResultSet() that is used by the VTI to read the data, it defaults > to super class SQLChar.java implementation, which reads the data using > getString(). > One case I noticed the current implementation uses lot of memory is when doing import of clobs(DERBY-378). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.