Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 48190 invoked from network); 10 Nov 2005 16:39:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Nov 2005 16:39:31 -0000 Received: (qmail 46986 invoked by uid 500); 10 Nov 2005 16:39:27 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 46962 invoked by uid 99); 10 Nov 2005 16:39:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2005 08:39:25 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 3900D21F for ; Thu, 10 Nov 2005 17:39:04 +0100 (CET) Message-ID: <1900074950.1131640744231.JavaMail.jira@ajax.apache.org> Date: Thu, 10 Nov 2005 17:39:04 +0100 (CET) From: "Stefan Guggisberg (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Closed: (JCR-15) PersistentNode.store() ignores status when storing In-Reply-To: <1355512333.1099035632439.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JCR-15?page=all ] Stefan Guggisberg closed JCR-15: -------------------------------- closing resolved issue > PersistentNode.store() ignores status when storing > -------------------------------------------------- > > Key: JCR-15 > URL: http://issues.apache.org/jira/browse/JCR-15 > Project: Jackrabbit > Type: Bug > Environment: Jackrabbit SVN revision 55714 > Reporter: Felix Meschberger > Assignee: Tobias Strasser > > While looking for a performance bottle neck I came across this issue: When a PersistentNodeState is asked to store itself in the PersistentNodeState.store() method, it calls its PersistenceManager to store it. > This is not a problem in itself. The problem is, that if the PersistentNodeState has not been modified, the object does not need to be stored. Doiing it anyway just consumes cycles ! In the case of a deep, unmodified hierarchy, this just results in nodes being written to persistence for nothing. > Comes to it, that this method sends an event, which in the case of an unmodified node state will be notifyStateUpdated(), which is complete nonsense, because nothing has actually been updated. > I suggest to modify the PersistentNodeState.store() method to only do work if modified. > Note: I encountered this issue, whily tracking down performance problems when creating versionable nodes, which turned out to be located somewhere within the PersistentVersionManager.createVersionHistory(NodeImpl) method. And there, predominantly the store() methods consume time. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira