Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CAA879F2E for ; Tue, 15 May 2012 18:03:32 +0000 (UTC) Received: (qmail 5264 invoked by uid 500); 15 May 2012 18:03:32 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 5223 invoked by uid 500); 15 May 2012 18:03:32 -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 5216 invoked by uid 99); 15 May 2012 18:03:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 May 2012 18:03:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 May 2012 18:03:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EFB685E1E for ; Tue, 15 May 2012 18:03:08 +0000 (UTC) Date: Tue, 15 May 2012 18:03:08 +0000 (UTC) From: "Kim Haase (JIRA)" To: derby-dev@db.apache.org Message-ID: <1634169253.389.1337104988983.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <254534088.7084.1334863600454.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5698) Document performance issue with 2-arg versions of setXXXStream methods for LOBs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kim Haase updated DERBY-5698: ----------------------------- Attachment: DERBY-5698-3.zip DERBY-5698-3.diff Thank you, Kristian! I am attaching a third patch with the sentence about the pageSize property removed, and I'll commit it if/when I resolve my SSL problems. > Document performance issue with 2-arg versions of setXXXStream methods for LOBs > ------------------------------------------------------------------------------- > > Key: DERBY-5698 > URL: https://issues.apache.org/jira/browse/DERBY-5698 > Project: Derby > Issue Type: Improvement > Components: Documentation > Affects Versions: 10.8.2.2 > Reporter: Kim Haase > Assignee: Kim Haase > Attachments: DERBY-5698-2.diff, DERBY-5698-2.zip, DERBY-5698-3.diff, DERBY-5698-3.zip, DERBY-5698.diff, DERBY-5698.stat, DERBY-5698.zip > > > The PreparedStatement.setAsciiStream and other methods have a 3-arg form that includes the length of the stream and a 2-arg form that does not. If the 2-arg form is used, Derby has to calculate the length every time the method is called. With LOBs, especially large ones, this can cause a major performance impact, especially if the method is called repeatedly. This should be documented where appropriate. > Kristian, please feel free to correct or amplify anything I've said here. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira