Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 41782 invoked from network); 12 Sep 2006 09:03:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Sep 2006 09:03:13 -0000 Received: (qmail 21985 invoked by uid 500); 12 Sep 2006 09:03:12 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 21975 invoked by uid 500); 12 Sep 2006 09:03:12 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 21966 invoked by uid 99); 12 Sep 2006 09:03:12 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2006 02:03:12 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=michael.neale@gmail.com; spf=pass Authentication-Results: idunn.apache.osuosl.org header.from=michael.neale@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=DNS_FROM_RFC_ABUSE,HTML_20_30,HTML_MESSAGE,RCVD_BY_IP Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 64.233.184.226 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from ([64.233.184.226:18012] helo=wr-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 95/C4-00869-9D776054 for ; Tue, 12 Sep 2006 02:03:22 -0700 Received: by wr-out-0506.google.com with SMTP id i21so466176wra for ; Tue, 12 Sep 2006 02:03:06 -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:references; b=DlyGU7S10+8TaOUM8mvogrcfs5bAlx8+/E8q7F5UhLlEw4dsRhE3+yzOGl5lsVNmmFTULX+KScAB/Mihl6oawR+erg/0vn0mFbAcjAP/mJuQfhvTfVmCiIMVHNH9DNCDUGUqzVTucw0uyCsSykldUa9DgxPVgqC0rH7cjRP1h74= Received: by 10.90.118.12 with SMTP id q12mr1990688agc; Tue, 12 Sep 2006 02:03:05 -0700 (PDT) Received: by 10.90.98.10 with HTTP; Tue, 12 Sep 2006 02:03:05 -0700 (PDT) Message-ID: <96ab3ced0609120203p55c488bbw3d06bc2e24ec5e81@mail.gmail.com> Date: Tue, 12 Sep 2006 10:03:05 +0100 From: "Michael Neale" To: users@jackrabbit.apache.org Subject: Re: Performance problem with references In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26917_25214059.1158051785786" References: X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_26917_25214059.1158051785786 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I gather you are referring to saving the node that has all the references as attributes? ie: NodeA ---> NodeX * Where there are 100 000 NodeX instances. NodeX.getReferences() would then return just one NodeA (in this case). So when you save NodeA - you are saving all the references - and I would expect that to be expensive. However, when you save NodeX - that should be reasonably fast right? If that is the case, could you try and "refactor" your repository (is that the right word ?? ;) so that there is a child node of NodeA which has all the references, and if you are making a simple field change to nodeA (not the references) just save it? (not its child). Just some thoughts... (I am still learning myself, so this would help me to know). On 9/11/06, Christoph Kiehl wrote: > > Hi, > > I'm experiencing an extreme performance/storage problem with references. > In my > case I got node(document) that reference another node(state) by reference. > This > state node is referenced by about 100.000 document nodes (still growing to > about > 1.000.000). As NodeReferences get persisted on every change, there is a > lot of > data written to the database on each added reference. > What is the best way to handle this number of references? Is there a > better way > than saving the state uuid as string property an hence give up referencial > integrity? > > Cheers, > Christoph > > ------=_Part_26917_25214059.1158051785786--