On 22/02/2017 11:57, Chetan Mehrotra wrote:
> One possible approach is to mark the parent with a specific hidden
> property which has such a node upon addition. This would avoid the
> negative lookup in case of updates
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?
Davide