Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 75386 invoked from network); 30 Jun 2006 15:52:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jun 2006 15:52:56 -0000 Received: (qmail 40815 invoked by uid 500); 30 Jun 2006 15:52:55 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 40586 invoked by uid 500); 30 Jun 2006 15:52:54 -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 40577 invoked by uid 99); 30 Jun 2006 15:52:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 08:52:54 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of tomonaka@basil.ocn.ne.jp designates 222.146.51.83 as permitted sender) Received: from [222.146.51.83] (HELO smtp.basil.ocn.ne.jp) (222.146.51.83) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 08:52:53 -0700 Received: from [192.168.0.8] (p7056-adsau12honb5-acca.tokyo.ocn.ne.jp [220.96.168.56]) by smtp.basil.ocn.ne.jp (Postfix) with ESMTP id 009F56D0B for ; Sat, 1 Jul 2006 00:52:31 +0900 (JST) Received: from 127.0.0.1 (AVG SMTP 7.1.394 [268.9.7/379]); Sat, 01 Jul 2006 00:58:41 +0900 Message-ID: <44A54A31.2010001@basil.ocn.ne.jp> Date: Sat, 01 Jul 2006 00:58:41 +0900 From: TomohitoNakayama User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: ja, en-us, en MIME-Version: 1.0 To: Derby Development Subject: Wondering to myself about doing layer B streaming from client to server Content-Type: text/plain; charset=ISO-2022-JP 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 Hello. Continuing DERBY-1301(http://issues.apache.org/jira/browse/DERBY-1301), I came to have question whether layer B streaming should be done when lob was sent from client to server. Reading javadoc for java.sql package, I found that methods passing stream object to driver always takes parameter for length information. Then, driver can simply pass that length information to server. I think there are no need for driver to execute layer B streaming, because caller of driver always pass length of streamed object to driver. However, here comes another question. DERBY-550(http://issues.apache.org/jira/browse/DERBY-550), which is linked from DERBY-1301 told that current implementation of org.apache.derby.jdbc.ClientDriver expands object to be streamed into memory and this behavior tends to cause OutOfMemoryError. Are there any reason why current driver expands object into memory, though length of the object is served as parameter of method ? Well.... I think it is needed to survey some more around current implementation of driver and clear the mystery in org.apache.derby.jdbc.ClientDriver, around expanding object into memory before sending .... Best regards. -- /* Tomohito Nakayama tomonaka@basil.ocn.ne.jp tomohito@rose.zero.ad.jp tmnk@apache.org Naka http://www5.ocn.ne.jp/~tomohito/TopPage.html */