Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 8790 invoked from network); 9 Oct 2005 08:30:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2005 08:30:11 -0000 Received: (qmail 87263 invoked by uid 500); 9 Oct 2005 08:30:11 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 87216 invoked by uid 500); 9 Oct 2005 08:30:10 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 87205 invoked by uid 99); 9 Oct 2005 08:30:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2005 01:30:09 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 97B4F21E for ; Sun, 9 Oct 2005 10:29:48 +0200 (CEST) Message-ID: <1375985664.1128846588618.JavaMail.jira@ajax.apache.org> Date: Sun, 9 Oct 2005 10:29:48 +0200 (CEST) From: "Tomohito Nakayama (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-609) Returning ByteArrayInputStream from ResultSet is not appropriate In-Reply-To: <578798006.1128783648734.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-609?page=comments#action_12331662 ] Tomohito Nakayama commented on DERBY-609: ----------------------------------------- About 2: Performance of program : I found that value of Clob and Blob are stored in memory as org.apache.derby.client.am.Clob#string_ typed as String and org.apache.derby.client.am.Blob#binaryString_ typed as byte[] ResultSet seems to return information retrieved from those variables. If Clob and Blob have large size of data , this structure will cause performance problem. I think we should transfer problem of this structure to another issue , because it will be much amount of work . > Returning ByteArrayInputStream from ResultSet is not appropriate > ---------------------------------------------------------------- > > Key: DERBY-609 > URL: http://issues.apache.org/jira/browse/DERBY-609 > Project: Derby > Type: Bug > Components: Network Client > Reporter: Tomohito Nakayama > Assignee: Tomohito Nakayama > > Point where it is not appropriate : > 1: Compatibility > The InputStream returned from result set is closed when other getXXXX method was called . > http://java.sun.com/j2se/1.5.0/docs/api/java/sql/ResultSet.html > However closing ByteArrayInputStream have no effect at all . > http://java.sun.com/j2se/1.5.0/docs/api/java/io/ByteArrayInputStream.html#close() > It seems intended that closable InputStream was returned from result set . > If ByteArrayInputStream was returned from result set , the stream cannot be closed, > and compatibility would be lost . > 2: Performance of program > Information inputted from ByteArrayInputStream needs to be expanded to memory as byte[] object . > If large byte[] object was created for each ByteArrayInputStream object , > program will run in bad performance . > // I think problem is when information typed as LOB was retrieved from ResultSet . > // Because such informations typed as LOB tend to be large amount . -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira