[ https://issues.apache.org/jira/browse/OAK-5030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15612389#comment-15612389 ]
Michael Dürig commented on OAK-5030: ------------------------------------ The reason for the slowness and the growth is how the {{versionStorage}} node builder in {{VersionableEditor}} is used: its {{getNodeState()}} method is called very frequently inside {{VersionableEditor.isVersionHistoryExists()}}. This isn't the intended use case for node builders as their {{getNodeState()}} method is not optimised for read performance and might have side effects. In the case of the {{SegmentNodeBuilder}} it flushed pending changes to disk (thus the growths and the slowness). > Copying the versions store is slow and increase the repository size > ------------------------------------------------------------------- > > Key: OAK-5030 > URL: https://issues.apache.org/jira/browse/OAK-5030 > Project: Jackrabbit Oak > Issue Type: Improvement > Components: upgrade > Reporter: Michael Dürig > Labels: perfomance > Fix For: 1.5.13 > > > This is a follow up to OAK-4970: when defining an workspace name that doesn't > match the name of the workspace of the source repository (via the > {{WORKSPACE_NAME_PROP}} system property), upgrading is still very slow and > causes the repository size to grow way too much. -- This message was sent by Atlassian JIRA (v6.3.4#6332)