Marcel Reutegger created OAK-10149:
--------------------------------------
Summary: Rebase may be expensive with many siblings
Key: OAK-10149
URL: https://issues.apache.org/jira/browse/OAK-10149
Project: Jackrabbit Oak
Issue Type: Improvement
Components: documentmk
Reporter: Marcel Reutegger
In some cases DocumentNodeStore.rebase(NodeBuilder) can be expensive when a
node is added to a parent that already has many children.
There are a few other conditions that also need to be met to make the refresh
expensive. Steps to reproduce are:
Create a node structure with many child nodes and save
Create a sibling to those many nodes, but not yet save
Make further transient changes until the DocumentNodeStore creates an InMemory
branch. A test can also force create this branch.
Add further changes to the new node
Rebase the current builder. Now the implementation reads all siblings of the
new node, while it should only check if the added node already exists.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)