jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mueller <muel...@adobe.com>
Subject Re: [MongoMK] flag document with children
Date Thu, 24 Oct 2013 09:38:36 GMT
Hi,

Yes, you are right. It should be relatively easy to implement (low risk).

Regards,
Thomas


On 10/24/13 10:12 AM, "Marcel Reutegger" <mreutegg@adobe.com> wrote:

>> The disadvantage is, when a node is added, either:
>> 
>> - then the parent needs to be checked whether is already has this flag
>>set
>> (if it is in the cache), or
>
>I'd say a parent node is likely in the cache because oak will read it
>first before
>it is able to add a child.
>
>> - the parent needs to be updated to set the flag
>
>that's correct. though you only have to do it when it isn't set already.
>and
>the check should be cheap in most cases, because the node is in the cache.
>
>regards
> marcel
>


Mime
View raw message