Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 45398 invoked from network); 20 Apr 2006 09:03:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Apr 2006 09:03:02 -0000 Received: (qmail 32777 invoked by uid 500); 20 Apr 2006 09:02:59 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 32745 invoked by uid 500); 20 Apr 2006 09:02:59 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 32736 invoked by uid 99); 20 Apr 2006 09:02:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 02:02:59 -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 stefan.guggisberg@gmail.com designates 64.233.162.205 as permitted sender) Received: from [64.233.162.205] (HELO nz-out-0102.google.com) (64.233.162.205) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 02:02:58 -0700 Received: by nz-out-0102.google.com with SMTP id z3so98836nzf for ; Thu, 20 Apr 2006 02:02:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XkaGoqbsM7eTW7oj04IOT/49TKLvS8aggouHJhNgkqgN2tdmOdW1iNa08vDpW4S4kT0Vmux2Ac9IxMLO7AKwhF32tFlNZCc9r/PrOz+PrqFuMXL4+IT/vCeCTAlnTjDIpQu3mb7XgitcZk0HrA7Dyww1cPrLcjJPNbEvWD/rSKU= Received: by 10.64.3.9 with SMTP id 9mr44542qbc; Thu, 20 Apr 2006 02:02:38 -0700 (PDT) Received: by 10.64.47.5 with HTTP; Thu, 20 Apr 2006 02:02:38 -0700 (PDT) Message-ID: <90a8d1c00604200202l75225877m87b546548a1e300@mail.gmail.com> Date: Thu, 20 Apr 2006 11:02:38 +0200 From: "Stefan Guggisberg" To: dev@jackrabbit.apache.org Subject: Re: SQLException "Data too long" using SimpleDbPersistenceManager/MySQL In-Reply-To: <29a761a00604191239w770b3ba0lba363364f131fdfb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200604181754.k3IHsmft013482@post.webmailer.de> <90a8d1c00604190103h1c4842bbm239ca6f7a070329f@mail.gmail.com> <44461DE6.5060107@gmail.com> <29a761a00604190907q1c3a8bb7v3ffb92077cc31cc8@mail.gmail.com> <8fa1023f0604191217m4ebe2e9ey703079c6c852be37@mail.gmail.com> <29a761a00604191239w770b3ba0lba363364f131fdfb@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N don't panic, folks! ;) the default schema for derby uses a 'blob' column for storing the serialized node states. as brian pointed out correctly, the blob column has a max. size of 1mb if no size has been specified. i ran a quick test: i was able to add ~37k child nodes before hitting the 1mb size limit. i think that this is perfectly reasonable and i guess that most repositories won't ever come near this limit. however, if you really think that you need to be able to add more than ~30k child nodes to one single node you could easily change your schema, e.g. by specifying 'blob(5M)' as the data type of the NODE_DATA column.. again: i would stronlgy discourage from this kind of 'flat' repository model unless you have a very compelling reason. jcr's data model is inherently hierarchical so i'd suggest to better make use of this powerfull feature. cheers stefan On 4/19/06, Brian Moseley wrote: > On 4/19/06, Martin Perez wrote: > > > I have no problems uploading various megabyte files to derby without > > configuring anything... > > that's not the issue. saving serialized node states with > DerbyPersistenceManager is what we're talking about. >