Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 54087 invoked from network); 26 Feb 2010 20:41:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Feb 2010 20:41:26 -0000 Received: (qmail 32408 invoked by uid 500); 26 Feb 2010 20:41:25 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 32382 invoked by uid 500); 26 Feb 2010 20:41:25 -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 32373 invoked by uid 99); 26 Feb 2010 20:41:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 20:41:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.64.63.171] (HELO mail.sptci.com) (208.64.63.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 20:41:17 +0000 Received: from localhost (localhost [127.0.0.1]) by localhost.sptci.com (Postfix) with ESMTP id CC3C11D476 for ; Fri, 26 Feb 2010 12:40:56 -0800 (PST) X-Virus-Scanned: amavisd-new at sptci.com Received: from mail.sptci.com ([127.0.0.1]) by localhost (mail.sptci.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BJRQOHafuw6z for ; Fri, 26 Feb 2010 12:40:55 -0800 (PST) Received: from [10.123.95.181] (mobile-166-137-136-212.mycingular.net [166.137.136.212]) by mail.sptci.com (Postfix) with ESMTPSA id 254821D475 for ; Fri, 26 Feb 2010 12:40:54 -0800 (PST) Message-Id: From: Rakesh Vidyadharan To: "users@jackrabbit.apache.org" In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Mailer: iPhone Mail (7E18) Mime-Version: 1.0 (iPhone Mail 7E18) Subject: Re: getRootNode() takes 27 seconds... Date: Fri, 26 Feb 2010 14:40:47 -0600 References: <3A0E5276-0580-44B9-8D04-8B055455DE58@sptci.com> <96DFE183-932B-4673-B3C7-0E9B91C87E48@maya-systems.com> Is there any difference in performance between session.getRootNode() =20 and session.getNode("/")? Rajesh On Feb 26, 2010, at 2:04 PM, Fran=C3=A7ois Cassistat = =20 wrote: > Hmm, this is weird. > > If I use session.getNode("/path/to/some/node"); at start, it works =20 > in 2 seconds > > If I use session.getNode("/"); it takes 25 seconds... > > Under /, there is only two nodes (jcr:system) and my application =20 > root node. > > Once found, I get the root in 0ms, but maybe it is cached. > > > F > > > Le 2010-02-26 =C3=A0 2:26 PM, Fran=C3=A7ois Cassistat a =C3=A9crit : > >> Rakesh, >> >> Each time I create a connection and get the root node. >> >> After that, each access to a node seems a little slow, so querying =20= >> and fetching the 1500 nodes described below take one or two =20 >> minutes, but maybe decreasing the number of nodes could help. But =20 >> here, nothing as dramatic as 27 seconds for one node. >> >> >> F >> >> >> Le 2010-02-26 =C3=A0 2:14 PM, Rakesh Vidyadharan a =C3=A9crit : >> >>> >>> On 26 Feb 2010, at 12:51, Fran=C3=A7ois Cassistat wrote: >>> >>>> Thanks Rakesh for your reply, >>>> >>>> actually root have only one node, below 2 or 3 levels of that of =20= >>>> that there is one node with 1500 nodes, this is the maximum. All =20= >>>> other nodes have between 0 and 10 nodes. >>>> >>>> 1500 may be a lot and I may implements a tree strategy to =20 >>>> decrease the number of child of this node. But does that sub-sub-=20= >>>> sub-sub-node make the getRootNode() going that slow? >>> >>> No, that should not affect the root node retrieval. Is the time =20 >>> to access repeatable, or just the first time? >>> >>> Rakesh >>> >>>> >>>> >>>> F >>>> >>>> >>>> Le 2010-02-26 =C3=A0 1:16 PM, Rakesh Vidyadharan a =C3=A9crit : >>>> >>>>> >>>>> On 26 Feb 2010, at 11:32, Fran=C3=A7ois Cassistat wrote: >>>>> >>>>>> I have inserted ~25K nodes with ~1500 files (about 1.6G of =20 >>>>>> files) and now Jackrabbit takes 27 seconds to get the root =20 >>>>>> node, is it normal? Maybe it is because am I using the =20 >>>>>> standalone server (2.0)? Also I am making tests since jcr2spi. >>>>>> >>>>>> I'm a newbie with JackRabbit configuration files, so I did not =20= >>>>>> make much modifications to repository.xml >>>>> >>>>> In my experience the biggest issue is the number of child nodes =20= >>>>> under a parent (and not repository configuration). The general =20= >>>>> recommendation is to try and keep child nodes low (1000 does not =20= >>>>> seem too bad in my experience), but not 25K under a single parent. >>>>> >>>>> Rakesh >>>> >>> >>> >> >