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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2017/01/25 04:11:26 UTC
[jira] [Commented] (OAK-5511) Reduce lookup for oak:index node
under each changed node
[ https://issues.apache.org/jira/browse/OAK-5511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15837158#comment-15837158 ]
Chetan Mehrotra commented on OAK-5511:
--------------------------------------
[~alexparvulescu] [~catholicon] [~mreutegg] Thoughts?
> 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)