Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 7643 invoked from network); 18 Feb 2011 14:00:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Feb 2011 14:00:29 -0000 Received: (qmail 8118 invoked by uid 500); 18 Feb 2011 14:00:29 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 7754 invoked by uid 500); 18 Feb 2011 14:00:26 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 7747 invoked by uid 99); 18 Feb 2011 14:00:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 14:00:25 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brett.wooldridge@gmail.com designates 74.125.82.50 as permitted sender) Received: from [74.125.82.50] (HELO mail-ww0-f50.google.com) (74.125.82.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 14:00:20 +0000 Received: by wwf26 with SMTP id 26so3669597wwf.31 for ; Fri, 18 Feb 2011 05:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:references:from:in-reply-to:mime-version:date :message-id:subject:to:content-type:content-transfer-encoding; bh=tFUJ4F86tNapm2ggY9PhVfn0+pp6N2KTAP1vj0YU0nk=; b=Jt0kEty4PumHD7X5Eewqo3TbtNVi1eFQ2dg03eCdYaFaRfckpQ1nzcLKwZcwnorgYR BlKcZwTUonjtZsenw1TvX7cc/TkzaQFqlpzMd9c8II9ti5ooXXV4fSk9j2GScFYYnr1L lvMk/Hv3pvh+53wktMLG+HE85CsJwY85hid6I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :content-type:content-transfer-encoding; b=rvAuAJQVuzKULExfgA3mkVEVfuDNsGKTY/JKfPzde6MpZTzA0AteIrTXCFIpJ8tSWb Y60BGM1gFO0D/9gAbfFwJLFWelYGZQ11gt6r+iEupRyX/FpHKK/dHsq8cMsIhXahs3eR r8Y9FkzLstFTPieNqyKWJ208cl7hRlZl+mzqM= Received: by 10.216.166.68 with SMTP id f46mr1573449wel.26.1298037598899; Fri, 18 Feb 2011 05:59:58 -0800 (PST) References: From: Brett Wooldridge In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8C148) Date: Fri, 18 Feb 2011 22:59:37 +0900 Message-ID: <-3025694359845061665@unknownmsgid> Subject: Re: BLOB streaming To: Derby Discussion Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The question is, is it still fully materialized on the server before streaming to the client? Brett Sent from my iPhone On Feb 18, 2011, at 22:11, Knut Anders Hatlen wrot= e: > Brett Wooldridge writes: > >> Hi all, >> >> >> I just came across this in the manual, and if accurate raises some >> concerns for me: >> >> For applications using the client driver, if the stream is stored in a >> column of a type other than LONG VARCHAR or LONG VARCHAR FOR BIT DATA, >> the entire stream must be able to fit into memory at one time. Streams >> stored in LONG VARCHAR and LONG VARCHAR FOR BIT DATA columns do not >> have this limitation. >> >> This seems to imply that if I have a BLOB containing 1GB of data, and >> I'm using the client driver, the result cannot be streamed? >> Can this possibly be correct? =EF=BF=BDGiven the apparent limit of VARCH= AR of >> ~32K, is there no way to stream large data to a client? > > A lot of work went into Derby 10.2 and Derby 10.3 to avoid the need to > materialize LOBs on the client, so I believe this statement isn't true > anymore. I've filed https://issues.apache.org/jira/browse/DERBY-5056 to > update the manual. > > Thanks, > > -- > Knut Anders