You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2015/04/17 12:42:59 UTC

[jira] [Commented] (OAK-2726) Avoid repository traversal for trivial node type changes

    [ https://issues.apache.org/jira/browse/OAK-2726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14499616#comment-14499616 ] 

Julian Reschke commented on OAK-2726:
-------------------------------------

The relevant code appears to be in org.apache.jackrabbit.spi.commons.nodetype.NodeTypeDefDiff; is there a way to use this code directly or do we need a separate Oak variant?

> Avoid repository traversal for trivial node type changes
> --------------------------------------------------------
>
>                 Key: OAK-2726
>                 URL: https://issues.apache.org/jira/browse/OAK-2726
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>            Reporter: Marcel Reutegger
>             Fix For: 1.4
>
>
> The {{TypeEditor}} in oak-core checks the repository content when a node type changes to make sure the content still conforms to the updated node type. For a repository with a lot of nodes, this check can take quite a bit of time.
> Jackrabbit has an optimization in place for trivial node type changes. E.g. it will not check the content if a non-mandatory item is added to an existing node type definition. This optimization could be implemented in Oak as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)