Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 93688 invoked from network); 13 Nov 2007 11:27:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2007 11:27:53 -0000 Received: (qmail 23462 invoked by uid 500); 13 Nov 2007 11:27:41 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 23145 invoked by uid 500); 13 Nov 2007 11:27:40 -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 23136 invoked by uid 99); 13 Nov 2007 11:27:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2007 03:27:40 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marcel.reutegger@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 13 Nov 2007 11:28:31 +0000 Received: (qmail invoked by alias); 13 Nov 2007 11:27:21 -0000 Received: from l2tp.day.com (EHLO [192.168.10.59]) [62.192.10.243] by mail.gmx.net (mp049) with SMTP; 13 Nov 2007 12:27:21 +0100 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX19SapU+jCdSMmQHat8ITJQGMVfzPxOkwEHPoV0wgi 12/mbJWYvyJufW Message-ID: <47398A1B.8050504@gmx.net> Date: Tue, 13 Nov 2007 12:27:23 +0100 From: Marcel Reutegger User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Problem with NodeIterator References: <13706149.post@talk.nabble.com> <47396634.1090200@gmx.net> <13723780.post@talk.nabble.com> In-Reply-To: <13723780.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Kisu San wrote: > This has significantly increased the performance. Thanks Marcel. Now it is > taking 9547 milli seconds to get 1000 matching nodes out of 10,000 nodes. > Initially it was 222,406 milli seconds. > > Anymore tips to improve this performance further? that requires more detailed analysis. what persistence manager do you use? maybe getting the 1000 nodes through the persistence manager takes the time. Is the time spent looping over the result node iterator, or is it still spent on the first hasNext() call? what's the exact query do you execute? if the loop takes 10 seconds to run, you can also create a couple of thread dumps while the program runs. this will show you quite easily where the time is spent. >>> param name="respectDocumentOrder" value="false"/ > > I have tried this some time back, but it did not help at all. I have created > the nodes with this value 'true' and then changed to 'false' at the time of > firing query. > > It seems that jackrabbit did not pick up these changes. I thought when I > logout and login to session, it will pick up the new repository.xml changes. > Am I wrong here. Do I need to do anything else. you have to restart the whole repository, otherwise the change won't have any effect. regards marcel