On Wed, Feb 22, 2017 at 8:21 PM, Davide Giannella <[email protected]> wrote:
> Did you mean for ALL the nodes, or only specific nodes?
>
> Any way you're suggesting something like the following flow:
>
> 1) user call nodebuilder.child(":index")
> 2) lookup in hidden property
> 3) if not there, leverage the existing code
>
> If so I guess the property has been already fetched and it does not
> require roundtrips towards the DB. Am I right?
Currently the lookup is being done for ALL nodes. So IndexUpdate class
does following on each changed node
------
> @Override
public void enter(NodeState before, NodeState after)
throws CommitFailedException {
collectIndexEditors(builder.getChildNode(INDEX_DEFINITIONS_NAME),
before);
------
Which transalates into checking if the current node has a child node
'oak:index' and this leads to redudant calls.
Chetan Mehrotra