You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2015/10/13 16:25:05 UTC

[jira] [Commented] (JCRVLT-105) Optimize package handling for Oak

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

angela commented on JCRVLT-105:
-------------------------------

[~cziegeler], the node type of a node can be changed since JCR 2.0 by calling {{Node.setPrimaryType}}. IMO it should therefore even be possible with JCR API.


> Optimize package handling for Oak
> ---------------------------------
>
>                 Key: JCRVLT-105
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-105
>             Project: Jackrabbit FileVault
>          Issue Type: Improvement
>            Reporter: Carsten Ziegeler
>             Fix For: 3.1.26
>
>
> Vlt was written for Jackrabbit 2, I assume with Oak some operations can be optimized. We just stumpled across some code which changes the node type of a node on a package import: it basically does this by moving all child nodes to a temp node, deleting the node, recreating it with the new node type and then moving all child nodes back. If the tree below that node is large, this is a very heavy and expensive operation. Afaik, node type can be changed with Oak.
> There might be other optimizations like this



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