Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 17769 invoked from network); 1 Apr 2009 13:17:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Apr 2009 13:17:37 -0000 Received: (qmail 75470 invoked by uid 500); 1 Apr 2009 13:17:36 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 75411 invoked by uid 500); 1 Apr 2009 13:17:36 -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 75403 invoked by uid 99); 1 Apr 2009 13:17:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 13:17:36 +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; Wed, 01 Apr 2009 13:17:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8EF21234C003 for ; Wed, 1 Apr 2009 06:17:13 -0700 (PDT) Message-ID: <1335621752.1238591833573.JavaMail.jira@brutus> Date: Wed, 1 Apr 2009 06:17:13 -0700 (PDT) From: =?utf-8?Q?Michael_D=C3=BCrig_=28JIRA=29?= To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2050) Optimize refresh operations In-Reply-To: <133073174.1238509812110.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-2050?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Michael D=C3=BCrig updated JCR-2050: ------------------------------- Attachment: JCR-2050-2.patch Updated patch. This patch incorporates suggestions from Angela (thanks!) > Optimize refresh operations=20 > ---------------------------- > > Key: JCR-2050 > URL: https://issues.apache.org/jira/browse/JCR-2050 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: jackrabbit-jcr-benchmark, jackrabbit-jcr2spi > Reporter: Michael D=C3=BCrig > Assignee: Michael D=C3=BCrig > Priority: Minor > Attachments: JCR-2050-2.patch, JCR-2050.patch, jcr.log.excerpt.tx= t > > > With the current implementation (recursive) refresh operations cause a fu= ll traversal of the sub-tree rooted at the item causing the refresh. This i= s potentially expensive.=20 > Instead of invalidating each item in the respective sub-tree I propose to= mark the root of the sub-tree as invalidated. Such a mark would include a = time stamp. Also individual items would be time stamped with their resoluti= on time. When an item is accessed, it would check if its resolution time st= amp is older than the latest invalidation time stamp. If so, it checks whet= her the invalidation applies to it at all (by traversing up the path) and i= f so it would re-resolve itself. In any case its resolution time stamp will= be updated. > This approach would make invalidation much cheaper without putting much a= dditional load to simple item access. Moreover most of the additional load = (traversing up the path) only applies when an invalidation is pending. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.