Chetan Mehrotra created OAK-5511: ------------------------------------ Summary: Reduce lookup for oak:index node under each changed node Key: OAK-5511 URL: https://issues.apache.org/jira/browse/OAK-5511 Project: Jackrabbit Oak Issue Type: Improvement Components: core Reporter: Chetan Mehrotra Fix For: 1.8
Currently {{IndexUpdate}} does a lookup for {{oak:index}} node under each changed node. This is done to pickup index definitions and create IndexEditor based on those so as to index content under that subtree. This lookup results in extra remote calls on DocumentNodeStore based setup as for non leaf nodes NodeStore has to check from remote storage to determine if {{oak:index}} node is present or not. This lookup can be avoided by # Having an {{Editor}} which adds a hidden property {{:oak-index-present}} in parent node upon addition of {{oak:index}} as a child node # IndexUpdate would then does a lookup for {{oak:index}} node only if such a hidden property is found For upgrade we would have some logic which would make use of Nodetype index to identify all such nodes and mark them -- This message was sent by Atlassian JIRA (v6.3.4#6332)