Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 37922 invoked from network); 11 Aug 2009 15:34:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Aug 2009 15:34:30 -0000 Received: (qmail 48761 invoked by uid 500); 11 Aug 2009 15:34:37 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 48695 invoked by uid 500); 11 Aug 2009 15:34:37 -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 48687 invoked by uid 99); 11 Aug 2009 15:34:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 15:34:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 15:34:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0DBFB234C004 for ; Tue, 11 Aug 2009 08:34:15 -0700 (PDT) Message-ID: <1437637391.1250004855041.JavaMail.jira@brutus> Date: Tue, 11 Aug 2009 08:34:15 -0700 (PDT) From: =?utf-8?Q?Michael_D=C3=BCrig_=28JIRA=29?= To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-2218) NodeEntryImpl.getWorkspaceId() very inefficient In-Reply-To: <1713789777.1247752934828.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2218?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Michael D=C3=BCrig resolved JCR-2218. -------------------------------- Resolution: Fixed Fix Version/s: 2.0.0 Applied path in revision 803164 > NodeEntryImpl.getWorkspaceId() very inefficient=20 > ------------------------------------------------ > > Key: JCR-2218 > URL: https://issues.apache.org/jira/browse/JCR-2218 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: jackrabbit-jcr2spi > Reporter: Michael D=C3=BCrig > Assignee: Michael D=C3=BCrig > Fix For: 2.0.0 > > Attachments: JCR-2218.patch > > > NodeEntryImpl.getWorkspaceId() calculates its path on each call by callin= g itself recursively. Further each call to getWorkspaceId() results in vari= ous calls to the path and item factories which might be somewhat expensive = by themselves.=20 > In my test scenario I have a RepositoryService.getItemInfos() call return= ing ~1000 items. Processing these items results in about 2700000 (!) calls = to getWorkspaceId(). Profiler data shows, that 98% of the time to process t= he 1000 items is spent in getWorkspaceId() and related calls.=20 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.